Part Number Hot Search : 
ATHLON64 EEPROM ZX84C5V1 1A330 15KP10 BD638 KMT1117 P600A
Product Description
Full Text Search
 

To Download ISP1761BE Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1. general description the isp1761 is a single-chip hi-speed universal serial bus (usb) on-the-go (otg) controller integrated with advanced nxp slave host controller and the nxp isp1582 peripheral controller. the hi-speed usb host controller and peripheral controller comply to ref . 1 univ ersal ser ial bus speci? cation re v . 2.0 and support data transfer speeds of up to 480 mbit/s. the enhanced host controller interface (ehci) core implemented in the host controller is adapted from ref . 2 enhanced host controller interf ace speci? cation f or univ ersal ser ial bus re v . 1.0 . the otg controller adheres to ref . 3 on-the-go supplement to the usb speci? cation re v . 1.3 . the isp1761 has three usb ports. port 1 can be con?gured to function as a downstream port, an upstream port or an otg port; ports 2 and 3 are always con?gured as downstream ports. the otg port can switch its role from host to peripheral, and peripheral to host. the otg port can become a host through the host negotiation protocol (hnp) as speci?ed in the otg supplement. 2. features n compliant with ref . 1 univ ersal ser ial bus speci? cation re v . 2.0 ; supporting data transfer at high-speed (480 mbit/s), full-speed (12 mbit/s) and low-speed (1.5 mbit/s) n integrated transaction translator (tt) for original usb (full-speed and low-speed) peripheral support n three usb ports that support three operational modes: u mode 1: port 1 is an otg controller port, and ports 2 and 3 are host controller ports u mode 2: ports 1, 2 and 3 are host controller ports u mode 3: port 1 is a peripheral controller port, and ports 2 and 3 are host controller ports n supports otg host negotiation protocol (hnp) and session request protocol (srp) n multitasking support with virtual segmentation feature (up to four banks) n high-speed memory controller (variable latency and sram external interface) n directly addressable memory architecture n generic processor interface to most cpus, such as hitachi sh-3 and sh-4, nxp xa, intel strongarm, nec and toshiba mips, freescale dragonball and powerpc reduced instruction set computer (risc) processors n con?gurable 32-bit and 16-bit external memory data bus n supports programmed i/o (pio) and direct memory access (dma) n slave dma implementation on cpu interface to reduce the host systems cpu load isp1761 hi-speed universal serial bus on-the-go controller rev. 05 13 march 2008 product data sheet
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 2 of 163 nxp semiconductors isp1761 hi-speed usb otg controller n separate irq, dreq and dack lines for the host controller and the peripheral controller n integrated multi-con?guration fifo n double-buffering scheme increases throughput and facilitates real-time data transfer n integrated phase-locked loop (pll) with external 12 mhz crystal for low emi n tolerant i/o for low voltage cpu interface (1.65 v to 3.3 v) n 3.3 v-to-5.0 v external power supply input n integrated 5.0 v-to-1.8 v or 3.3 v-to-1.8 v voltage regulator (internal 1.8 v for low-power core) n internal power-on reset or low-voltage reset and block-dedicated software reset n supports suspend and remote wake-up n built-in overcurrent circuitry (analog overcurrent protection) n hybrid-power mode: v cc(5v0) (can be switched off), v cc(i/o) (permanent) n target total current consumption: u normal operation; one port in high-speed active: i cc < 100 ma when the internal charge pump is not used u suspend mode: i cc(susp) < 150 m a at ambient temperature of +25 c n available in lqfp128 and tfbga128 packages n host controller-speci?c features u high performance usb host with integrated hi-speed usb transceivers; supports high-speed, full-speed and low-speed u ehci core is adapted from ref . 2 enhanced host controller interf ace speci? cation f or univ ersal ser ial bus re v . 1.0 u con?gurable power management u integrated tt for original usb peripheral support on all three ports u integrated 64 kb high-speed memory (internally organized as 8 k 64 bit) u additional 2.5 kb separate memory for tt u individual or global overcurrent protection with built-in sense circuits u built-in overcurrent circuitry (digital or analog overcurrent protection) n otg controller-speci?c features u otg transceiver: fully integrated; adheres to ref . 3 on-the-go supplement to the usb speci? cation re v . 1.3 u supports hnp and srp for otg dual-role devices u hnp: status and control registers for software implementation u srp: status and control registers for software implementation u programmable timers with high resolution (0.01 ms to 80 ms) for hnp and srp u supports external source of v bus n peripheral controller-speci?c features u high-performance usb peripheral controller with integrated serial interface engine (sie), fifo memory and transceiver u complies with ref . 1 univ ersal ser ial bus speci? cation re v . 2.0 and most device class speci?cations u supports auto hi-speed usb mode discovery and original usb fallback capabilities u supports high-speed and full-speed on the peripheral controller u bus-powered or self-powered capability with suspend mode
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 3 of 163 nxp semiconductors isp1761 hi-speed usb otg controller u slave dma, fully autonomous and supports multiple con?gurations u seven in endpoints, seven out endpoints and one ?xed control in and out endpoint u integrated 8 kb memory u software-controllable connection to the usb bus, softconnect 3. applications the isp1761 can be used to implement a dual-role usb device in any application, usb host or usb peripheral, depending on the cable connection. if the dual-role device is connected to a typical usb peripheral, it behaves like a typical usb host. the dual-role device can also be connected to a pc or any other usb host and behave like a typical usb peripheral. 3.1 host/peripheral roles n mobile phone to/from: u mobile phone: exchange contact information u digital still camera: e-mail pictures or upload pictures to the web u mp3 player: upload/download/broadcast music u mass storage: upload/download ?les u scanner: scan business cards n digital still camera to/from: u digital still camera: exchange pictures u mobile phone: e-mail pictures, upload pictures to the web u printer: print pictures u mass storage: store pictures n printer to/from: u digital still camera: print pictures u scanner: print scanned image u mass storage: print ?les stored in a device n mp3 player to/from: u mp3 player: exchange songs u mass storage: upload/download songs n oscilloscope to/from: u printer: print screen image n personal digital assistant to/from: u personal digital assistant: exchange ?les u printer: print ?les u mobile phone: upload/download ?les u mp3 player: upload/download songs u scanner: scan pictures u mass storage: upload/download ?les u global positioning system (gps): obtain directions, mapping information u digital still camera: upload pictures u oscilloscope: con?gure oscilloscope
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 4 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 4. ordering information table 1. ordering information type number package name description version ISP1761BE lqfp128 plastic low pro?le quad ?at package; 128 leads; body 14 20 1.4 mm sot425-1 isp1761et tfbga128 plastic thin ?ne-pitch ball grid array package; 128 balls; body 9 9 0.8 mm sot857-1
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 5 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 5. block diagram this ?gure shows the lqfp pinout. for the tfbga ballout, see t ab le 2 . all ground pins should normally be connected to a common ground plane. fig 1. block diagram xtal1 xtal2 11 12 clkin 13 bus interface: memory management unit + slave dma controller + interrupt control hc ptd memory (3 kb) memory arbiter and fifo transaction translator (tt) and ram otg controller 004aaa450 pll 30 mhz 60 mhz global control and power management digital and analog overcurrent protection data[15:0]/data[31:0] generic processor bus sel16/32 registers support dc buffer memory 8 kbytes advanced nxp slave host controller advanced peripheral controller dynamic port routing and port control logic id 37 to 39, 41 to 43, 45 to 47, 49, 51, 52, 54, 56 to 58, 60 to 62, 64 to 66, 68 to 70, 72 to 74, 76 to 78, 80 82, 84, 86, 87, 89, 91 to 93, 95 to 98, 100 to 103, 105 106 cs_n 107 rd_n 108 wr_n 112 hc_irq 113 dc_dreq 111 dc_irq v cc(i/o) 10, 40, 48, 59, 67, 75, 83, 94, 104, 115 ISP1761BE reset_n hc_suspend/ wakeup_n 122 119 dc_suspend/ wakeup_n 120 gndd 14, 36, 44, 55, 63, 71, 79, 90, 99, 109 power-on reset and v bat on 5 v-to-1.8 v voltage regulator v cc(5v0) bat_on_n 5 v-to-3.3 v voltage regulator reg3v3 reg1v8 9 6, 7 110 5, 50, 85, 118 ref5v 2 hi-speed usb atx1 dp1 dm1 psw1_n oc1_n/ v bus psw2_n oc2_n psw3_n oc3_n hi-speed usb atx2 hi-speed usb atx3 dp2 dm2 dp3 dm3 20 18 27 25 21 127 19 gnda 26 gnda 28 128 34 32 33 gnda 35 1 rref1 16 gnd (rref1) 15 rref2 23 gnd (rref2) 22 rref3 30 gnd (rref3) 29 3 116 hc_dack 117 dc_dack 114 hc_dreq charge pump 124 c_b c_a 125 126 v cc(c_in) a[17:1] 17 hc payload memory (60 kb) 4, 17, 24, 31, 123 gnda 8 gnd(osc) 53, 88, 121 gndc
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 6 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 6. pinning information 6.1 pinning fig 2. pin con?guration (lqfp128); top view fig 3. pin con?guration (tfbga128); top view ISP1761BE 102 39 64 128 103 65 1 38 004aaa506 004aaa551 isp1761et t r p n m l j g k h f e d c b a 24681012 13 14 15 16 1357911 ball a1 index area
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 7 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 6.2 pin description table 2. pin description symbol [1] [2] pin type [3] description lqfp128 tfbga128 oc3_n 1 c2 ai/i port 3 analog (5 v input) and digital overcurrent input; if not used, connect to v cc(i/o) through a 10 k w resistor input, 5 v tolerant ref5v 2 a2 ai 5 v reference input for analog oc detector; connect a 100 nf decoupling capacitor id 3 b2 i id input to detect the default host or peripheral setting when port 1 is in otg mode; pull-up to 3.3 v through a 4.7 k w resistor input, 3.3 v tolerant gnda 4 a1 - analog ground reg1v8 5 b1 p core power output (1.8 v); internal 1.8 v for the digital core; used for decoupling; connect a 100 nf capacitor; for details on additional capacitor placement, see section 7.7 v cc(5v0) 6 c1 p input to internal regulators (3.0 v-to-5.5 v); connect a 100 nf decoupling capacitor; see section 7.7 v cc(5v0) 7 d2 p input to internal regulators (3.0 v-to-5.5 v); connect a 100 nf decoupling capacitor; see section 7.7 gnd(osc) 8 e3 - oscillator ground reg3v3 9 d1 p regulator output (3.3 v); for decoupling only; connect a 100 nf capacitor and a 4.7 m f-to-10 m f capacitor; see section 7.7 v cc(i/o) 10 e2 p digital supply voltage; 1.65 v to 3.6 v; connect a 100 nf decoupling capacitor; see section 7.7 xtal1 11 e1 ai 12 mhz crystal connection input; connect to ground if an external clock is used xtal2 12 f2 ao 12 mhz crystal connection output clkin 13 f1 i 12 mhz oscillator or clock input; when not in use, connect to v cc(i/o) gndd 14 g3 - digital ground gnd(rref1) 15 g2 - rref1 ground rref1 16 g1 ai reference resistor connection; connect a 12 k w 1 % resistor between this pin and the rref1 ground gnda [4] 17 h2 - analog ground dm1 18 h1 ai/o downstream data minus port 1 gnda 19 j3 - analog ground dp1 20 j2 ai/o downstream data plus port 1 psw1_n 21 j1 od power switch port 1, active low output pad, push-pull open-drain, 8 ma output drive, 5 v tolerant gnd(rref2) 22 k2 - rref2 ground rref2 23 k1 ai reference resistor connection; connect a 12 k w 1 % resistor between this pin and the rref2 ground gnda [5] 24 l3 - analog ground dm2 25 l1 ai/o downstream data minus port 2 gnda 26 l2 - analog ground dp2 27 m2 ai/o downstream data plus port 2
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 8 of 163 nxp semiconductors isp1761 hi-speed usb otg controller psw2_n 28 m1 od power switch port 2, active low output pad, push-pull open-drain, 8 ma output drive, 5 v tolerant gnd(rref3) 29 n2 - rref3 ground rref3 30 n1 ai reference resistor connection; connect a 12 k w 1 % resistor between this pin and the rref3 ground gnda [6] 31 p2 - analog ground dm3 32 p1 ai/o downstream data minus port 3 gnda 33 r2 - analog ground dp3 34 r1 ai/o downstream data plus port 3 psw3_n 35 t1 od power switch port 3, active low output pad, push-pull open-drain, 8 ma output drive, 5 v tolerant gndd 36 t2 - digital ground data0 37 r3 i/o data bit 0 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant data1 38 t3 i/o data bit 1 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant data2 39 r4 i/o data bit 2 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant v cc(i/o) 40 t4 p digital supply voltage; 1.65 v to 3.6 v; connect a 100 nf decoupling capacitor; see section 7.7 data3 41 p5 i/o data bit 3 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant data4 42 t5 i/o data bit 4 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant data5 43 r5 i/o data bit 5 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant gndd 44 t6 - digital ground data6 45 r6 i/o data bit 6 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant data7 46 p7 i/o data bit 7 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant data8 47 t7 i/o data bit 8 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant v cc(i/o) 48 r7 p digital supply voltage; 1.65 v to 3.6 v; connect a 100 nf decoupling capacitor; see section 7.7 table 2. pin description continued symbol [1] [2] pin type [3] description lqfp128 tfbga128
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 9 of 163 nxp semiconductors isp1761 hi-speed usb otg controller data9 49 t8 i/o data bit 9 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant reg1v8 50 r8 p core power output (1.8 v); internal 1.8 v for the digital core; used for decoupling; connect a 100 nf capacitor; for details on additional capacitor placement, see section 7.7 data10 51 p9 i/o data bit 10 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant data11 52 t9 i/o data bit 11 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant gndc 53 r9 - core ground data12 54 t10 i/o data bit 12 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant gndd 55 r10 - digital ground data13 56 p11 i/o data bit 13 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant data14 57 t11 i/o data bit 14 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant data15 58 r11 i/o data bit 15 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant v cc(i/o) 59 t12 p digital supply voltage; 1.65 v to 3.6 v; connect a 100 nf decoupling capacitor; see section 7.7 data16 60 r12 i/o data bit 16 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant data17 61 t13 i/o data bit 17 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant data18 62 r13 i/o data bit 18 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant gndd 63 r14 - digital ground data19 64 t14 i/o data bit 19 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant data20 65 t15 i/o data bit 20 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant table 2. pin description continued symbol [1] [2] pin type [3] description lqfp128 tfbga128
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 10 of 163 nxp semiconductors isp1761 hi-speed usb otg controller data21 66 r15 i/o data bit 21 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant v cc(i/o) 67 p15 p digital supply voltage; 1.65 v to 3.6 v; connect a 100 nf decoupling capacitor; see section 7.7 data22 68 t16 i/o data bit 22 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant data23 69 r16 i/o data bit 23 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant data24 70 p16 i/o data bit 24 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant gndd 71 n16 - digital ground data25 72 n15 i/o data bit 25 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant data26 73 m15 i/o data bit 26 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant data27 74 m16 i/o data bit 27 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant v cc(i/o) 75 m14 p digital supply voltage; 1.65 v to 3.6 v; connect a 100 nf decoupling capacitor; see section 7.7 data28 76 l16 i/o data bit 28 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant data29 77 l15 i/o data bit 29 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant data30 78 k16 i/o data bit 30 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant gndd 79 k15 - digital ground data31 80 k14 i/o data bit 31 input and output bidirectional pad, push-pull input, 3-state output, 4 ma output drive, 3.3 v tolerant test 81 j16 - connect to ground a1 82 h16 i address pin 1 input, 3.3 v tolerant v cc(i/o) 83 j15 p digital supply voltage; 1.65 v to 3.6 v; connect a 100 nf decoupling capacitor; see section 7.7 table 2. pin description continued symbol [1] [2] pin type [3] description lqfp128 tfbga128
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 11 of 163 nxp semiconductors isp1761 hi-speed usb otg controller a2 84 h15 i address pin 2 input, 3.3 v tolerant reg1v8 85 g16 p core power output (1.8 v); internal 1.8 v for the digital core; used for decoupling; connect a 100 nf capacitor and a 4.7 m f-to-10 m f capacitor; see section 7.7 a3 86 h14 i address pin 3 input, 3.3 v tolerant a4 87 f16 i address pin 4 input, 3.3 v tolerant gndc 88 g15 - core ground a5 89 f15 i address pin 5 input, 3.3 v tolerant gndd 90 e16 - digital ground a6 91 f14 i address pin 6 input, 3.3 v tolerant a7 92 e15 i address pin 7 input, 3.3 v tolerant a8 93 d16 i address pin 8 input, 3.3 v tolerant v cc(i/o) 94 d15 p digital supply voltage; 1.65 v to 3.6 v; connect a 100 nf decoupling capacitor; see section 7.7 a9 95 c16 i address pin 9 input, 3.3 v tolerant a10 96 c15 i address pin 10 input, 3.3 v tolerant a11 97 b16 i address pin 11 input, 3.3 v tolerant a12 98 b15 i address pin 12 input, 3.3 v tolerant gndd 99 a16 - digital ground a13 100 a15 i address pin 13 input, 3.3 v tolerant a14 101 b14 i address pin 14 input, 3.3 v tolerant a15 102 a14 i address pin 15 input, 3.3 v tolerant a16 103 a13 i address pin 16 input, 3.3 v tolerant v cc(i/o) 104 b13 p digital voltage; 1.65 v to 3.6 v; connect a 100 nf decoupling capacitor; see section 7.7 a17 105 c12 i address pin 17 input, 3.3 v tolerant table 2. pin description continued symbol [1] [2] pin type [3] description lqfp128 tfbga128
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 12 of 163 nxp semiconductors isp1761 hi-speed usb otg controller cs_n 106 a12 i chip select assertion indicates the isp1761 being accessed; active low input, 3.3 v tolerant rd_n 107 b12 i read enable; active low input, 3.3 v tolerant wr_n 108 b11 i write enable; active low input, 3.3 v tolerant gndd 109 a11 - digital ground bat_on_n 110 c10 od to indicate the presence of a minimum 3.3 v on pins 6 and 7 (open-drain); connect to v cc(i/o) through a 10 k w pull-up resistor output pad, push-pull open-drain, 8 ma output drive, 5 v tolerant dc_irq 111 a10 o peripheral controller interrupt signal output 4 ma drive, 3.3 v tolerant hc_irq 112 b10 o host controller interrupt signal output 4 ma drive, 3.3 v tolerant dc_dreq 113 a9 o dma controller request for the peripheral controller output 4 ma drive, 3.3 v tolerant hc_dreq 114 b9 o dma controller request for host controller output 4 ma drive, 3.3 v tolerant v cc(i/o) 115 c8 p digital voltage; 1.65 v to 3.6 v; connect a 100 nf decoupling capacitor; see section 7.7 hc_dack 116 a8 i host controller dma request acknowledgment; when not in use, connect to v cc(i/o) through a 10 k w pull-up resistor input, 3.3 v tolerant dc_dack 117 b8 i peripheral controller dma request acknowledgment; when not in use, connect to v cc(i/o) through a 10 k w pull-up resistor input, 3.3 v tolerant reg1v8 118 b7 p core power output (1.8 v); internal 1.8 v for the digital core; used for decoupling; connect a 100 nf capacitor; for details on additional capacitor placement, see section 7.7 hc_suspend /wakeup_n 119 a7 i/od host controller suspend and wake-up; 3-state suspend output (active low) and wake-up input circuits are connected together ? high = output is 3-state; the isp1761 is in suspend mode ? low = output is low; the isp1761 is not in suspend mode connect to v cc(i/o) through an external 10 k w pull-up resistor output pad, open-drain, 4 ma output drive, 3.3 v tolerant dc_suspend /wakeup_n 120 c6 i/od peripheral controller suspend and wake-up; 3-state suspend output (active low) and wake-up input circuits are connected together ? high = output is 3-state; the isp1761 is in suspend mode ? low = output is low; the isp1761 is not in suspend mode connect to v cc(i/o) through an external 10 k w pull-up resistor output pad, open-drain, 4 ma output drive, 3.3 v tolerant gndc 121 a6 - core ground table 2. pin description continued symbol [1] [2] pin type [3] description lqfp128 tfbga128
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 13 of 163 nxp semiconductors isp1761 hi-speed usb otg controller [1] symbol names ending with underscore n, for example, name_n, represent active low signals. [2] all ground pins should normally be connected to a common ground plane. [3] i = input only; o = output only; i/o = digital input/output; od = open-drain output; ai/o = analog input/output; ai = analog input ; p = power; (ai/o)(i) = analog input/output digital input; ai/i = analog input digital input. [4] for port 1. [5] for port 2. [6] for port 3. reset_n 122 b6 i external power-up reset; active low; when reset is asserted, it is expected that bus signals are idle, that is, not toggling input, 3.3 v tolerant remark: during reset, ensure that all the input pins to the isp1761 are not toggling and are in their inactive states. gnda 123 b5 - analog ground c_b 124 a5 ai/o charge pump capacitor input; connect a 220 nf capacitor between this pin and pin 125 c_a 125 b4 ai/o charge pump capacitor input; connect a 220 nf capacitor between this pin and pin 124 v cc(c_in) 126 a4 p charge pump input; connect to 3.3 v oc1_n/v bus 127 b3 (ai/o)(i) this pin has multiple functions: ? input: port 1 oc1_n detection when port 1 is con?gured for host functionality and an external power switch is used; if not used, connect to v cc(i/o) through a 10 k w resistor; the 10 k w resistor is usually required by the open-drain output of the power-switch ?ag pin ? output: v bus out when internal charge pump is used and port 1 is con?gured for the otg functionality; maximum 50 ma current capability; the overcurrent protection in this case is ensured by the internal charge pump current limitation; only for port 1 ? input: v bus input detection when port 1 is de?ned for the peripheral functionality 5 v tolerant oc2_n 128 a3 ai/i port 2 analog (5 v input) and digital overcurrent input; if not used, connect to v cc(i/o) through a 10 k w resistor input, 5 v tolerant table 2. pin description continued symbol [1] [2] pin type [3] description lqfp128 tfbga128
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 14 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 7. functional description 7.1 isp1761 internal architecture: advanced nxp slave host controller and hub the ehci block and the hi-speed usb hub block are the main components of the advanced nxp slave host controller. the ehci is the latest generation design, with improved data bandwidth. the ehci in the isp1761 is adapted from ref . 2 enhanced host controller interf ace speci? cation f or univ ersal ser ial bus re v . 1.0 . the internal hi-speed usb hub block replaces the companion host controller block used in the original architecture of a peripheral component interconnect (pci) hi-speed usb host controller to handle full-speed and low-speed modes. the hardware architecture in the isp1761 is simpli?ed to help reduce cost and development time, by eliminating the additional work involved in implementing the ohci software required to support full-speed and low-speed modes. figure 4 shows the internal architecture of the isp1761. the isp1761 implements an ehci that has an internal port, the root hub port (not available externally), on which the internal hub is connected. the three external ports are always routed to the internal hub. the internal hub is a hi-speed usb hub including the tt. remark: the root hub must be enabled and the internal hub must be enumerated. enumerate the internal hub as if it is externally connected. for details, refer to ref . 5 interf acing the isp176x to the intel pxa25x processor (an10037) . at the host controller reset and initialization, the internal root hub port will be polled until a new connection is detected, showing the connection of the internal hub. the internal hi-speed usb hub is enumerated using a sequence similar to a standard hi-speed usb hub enumeration sequence, and the polling on the root hub is stopped because the internal hi-speed usb hub will never be disconnected. when enumerated, the internal hub will report the three externally available ports.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 15 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 7.1.1 internal clock scheme and port selection figure 5 shows the internal clock scheme of the isp1761. the isp1761 has three ports. fig 4. internal hub 004aaa513 ehci root hub internal hub (tt) external ports enumeration and polling using actual ptds portsc1 port3 port1 port2 fig 5. isp1761 clock scheme 004aaa538 host core digital core port 2 atx port 1 atx port 3 atx xosc host clock: 48 mhz, 30 mhz, 60 mhz pll 12 mhz in peripheral core peripheral clock: 48 mhz, 30 mhz, 60 mhz
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 16 of 163 nxp semiconductors isp1761 hi-speed usb otg controller port 2 does not need to be enabled using software if only port 1 or port 3 is used. no port needs to be disabled by external pull-up resistors, if not used. the dp and dm of the unused ports need not be externally pulled high because there are internal pull-down resistors on each port that are enabled by default. t ab le 3 lists the various port connection scenarios. 7.2 host controller buffer memory block 7.2.1 general considerations the internal addressable host controller buffer memory is 63 kb. the 63 kb effective memory size is the result of subtracting the size of the registers (1 kb) from the total addressable memory space de?ned by the isp1761 (64 kb). this is an optimized value to achieve the highest performance with minimal cost. the isp1761 is a slave host controller. this means that it does not need access to the local bus of the system to transfer data from the system memory to the isp1761 internal memory, unlike the case of the original pci hi-speed usb host controllers. therefore, correct data must be transferred to both the philips transfer descriptor (ptd) area and the payload area by pio (using cpu access) or programmed dma. the slave-host architecture ensures better compatibility with most of the processors present in the market today because not all processors allow a bus-master on the local bus. it also allows better load balancing of the processors local bus because only the internal bus arbiter of the processor controls the transfer of data dedicated to usb. this prevents the local bus from being busy when other more important transfers may be in the queue; and therefore achieving a linear system data ?ow that has less impact on other processes running at the same time. the considerations mentioned are also the main reason for implementing the pre-fetching technique, instead of using a ready signal. the resulting architecture avoids freezing of the local bus, by asserting ready, enhancing the isp1761 memory access time, and avoiding introduction of programmed additional wait states. for details, see section 7.3 . table 3. port connection scenarios port con?guration port 1 port 2 port 3 one port (port 1) dp and dm are routed to usb connector dp and dm are not connected (left open) dp and dm are not connected (left open) one port (port 2) dp and dm are not connected (left open) dp and dm are routed to usb connector dp and dm are not connected (left open) one port (port 3) dp and dm are not connected (left open) dp and dm are not connected (left open) dp and dm are routed to usb connector two ports (ports 1 and 2) dp and dm are routed to usb connector dp and dm are routed to usb connector dp and dm are not connected (left open) two ports (ports 2 and 3) dp and dm are not connected (left open) dp and dm are routed to usb connector dp and dm are routed to usb connector two ports (ports 1 and 3) dp and dm are routed to usb connector dp and dm are not connected (left open) dp and dm are routed to usb connector three ports (ports 1, 2 and 3) dp and dm are routed to usb connector dp and dm are routed to usb connector dp and dm are routed to usb connector
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 17 of 163 nxp semiconductors isp1761 hi-speed usb otg controller the total amount of memory allocated to the payload determines the maximum transfer size speci?ed by a ptd, a larger internal memory size results in less cpu interruption for transfer programming. this means less time spent in context switching, resulting in better cpu usage. a larger buffer also implies that a larger amount of data can be transferred. this transfer, however, can be done over a longer period of time, to maintain the overall system performance. each transfer of the usb data on the usb bus can span up to a few milliseconds before requiring further cpu intervention for data movement. the internal architecture of the isp1761 allows a ?exible de?nition of the memory buffer for optimization of the data transfer on the cpu extension bus and the usb. it is possible to implement different data transfer schemes, depending on the number and type of usb devices present. for example: push-pull; data can be written to half of the memory while data in the other half is being accessed by the host controller and sent on the usb bus. this is useful especially when a high-bandwidth continuous or periodic data ?ow is required. through an analysis of the hardware and software environment regarding the usual data ?ow and performance requirements of most embedded systems, nxp has determined the optimal size for the internal buffer as approximately 64 kb. 7.2.2 structure of the isp1761 host controller memory the 63 kb of internal memory consists of the ptd area and the payload area. the ptd memory zone is divided into three dedicated areas for each main type of usb transfer: isochronous (iso), interrupt (int) and asynchronous transfer list (atl). as shown in t ab le 4 , the ptd areas for iso, int and atl are grouped at the beginning of the memory, occupying the address range 0400h to 0fffh, following the register address space. the payload or data area occupies the next memory address range 1000h to ffffh, meaning that 60 kb of memory are allocated for the payload data. a maximum of 32 ptd areas and their allocated payload areas can be de?ned for each type of transfer. the structure of a ptd is similar for every transfer type and consists of eight double words (dws) that must be correctly programmed for a correct usb data transfer. the reserved bits of a ptd must be set to logic 0. a detailed description of the ptd structure can be found in section 8.5 . the transfer size speci?ed by the ptd determines the contiguous usb data transfer that can be performed without any cpu intervention. the respective payload memory area must be equal to the transfer size de?ned. the maximum transfer size is ?exible and can be optimized, depending on the number and nature of usb devices or ptds de?ned and their respective maxpacketsize. the cpu will program the dma to transfer the necessary data in the payload memory. the next cpu intervention will be required only when the current transfer is completed and dma programming is necessary to transfer the next data payload. this is normally signaled by the irq that is generated by the isp1761 on completing the current ptd, meaning all the data in the payload area was sent on the usb bus. the external irq signal is asserted according to the settings in the irq mask or or irq mask and registers, see section 8.4 .
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 18 of 163 nxp semiconductors isp1761 hi-speed usb otg controller the ram is structured in blocks of ptds and payloads so that while the usb is executing on an active transfer-based ptd, the processor can simultaneously ?ll up another block area in the ram. a ptd and its payload can then be updated on-the-?y without stopping or delaying any other usb transaction or corrupting the ram data. some of the design features are: ? the address range of the internal ram buffer is from 0400h to ffffh. ? the internal memory contains isochronous, interrupt and asynchronous ptds, and respective de?ned payloads. ? all accesses to the internal memory are double-word aligned. ? internal memory address range calculation: memory address = (cpu address - 0400h) (shift right >> 3). base address is 0400h. table 4. memory address memory map cpu address memory address iso 0400h to 07ffh 0000h to 007fh int 0800h to 0bffh 0080h to 00ffh atl 0c00h to 0fffh 0100h to 017fh payload 1000h to ffffh 0180h to 1fffh
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 19 of 163 nxp semiconductors isp1761 hi-speed usb otg controller both the cpu interface logic and the usb host controller require access to the internal isp1761 ram at the same time. the internal arbiter controls these accesses to the internal memory, organized internally on a 64-bit data bus width, allowing a maximum bandwidth of 240 mb/s. this bandwidth avoids any bottleneck on accesses both from the cpu interface and the internal usb host controller. 7.3 accessing the isp1761 host controller memory: pio and dma the cpu interface of the isp1761 can be con?gured for a 16-bit or 32-bit data bus width. when the isp1761 is con?gured for a 16-bit data bus width, the upper unused 16 data lines must be pulled up to v cc(i/o) . this can be achieved by connecting data[31:16] lines together to a single 10 k w pull-up resistor. the 16-bit or 32-bit data bus width con?guration is done by programming bit 8 of the hw mode control register. this will determine the register and memory access types in both pio and dma modes to all internal blocks: host controller, peripheral controller and otg controller. all accesses must be word-aligned for 16-bit mode and double-word aligned for 32-bit mode, where one word = 16 bits. when accessing the host controller registers in 16-bit mode, the register fig 6. memory segmentation and access block diagram 004aaa568 ptd1 ptd2 ptd32 ptd1 ptd2 . . . . ptd32 payload payload 63 kb usb bus usb high-speed host and transaction translator (full-speed and low-speed) interrupt async payload ptd32 . . ptd1 ptd2 isochronous memory mapped input/output, memory management unit, slave dma controller and interrupt control registers arbiter control signals 240 mb/s address data (64 bits) d[15:0]/d[31:0] a[17:1] . . . . . . . . cs_n rd_n wr_n hc_irq dc_dreq dc_irq hc_dreq hc_dack dc_dack micro- processor
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 20 of 163 nxp semiconductors isp1761 hi-speed usb otg controller access must always be completed using two subsequent accesses. in the case of a dma transfer, the 16-bit or 32-bit data bus width con?guration will determine the number of bursts that will complete a certain transfer length. in pio mode, cs_n, wr_n and rd_n are used to access registers and memory. in dma mode, the data validation is performed by dack, instead of cs_n, together with the wr_n and rd_n signals. the dreq signal will always be asserted as soon as the isp1761 dma is enabled. 7.3.1 pio mode access, memory read cycle the following method is implemented to reduce the read access timing in a memory read: ? the memory register contains the starting address and the bank selection to read from the memory. before every new read cycle of the same or different banks, an appropriate value is written to this register. ? once a value is written to this register, the address is stored in the fifo of that bank and is then used to pre-fetch data for the memory read of that bank. for every subsequent read operation executed at a contiguous address, the address pointer corresponding to that bank is automatically incremented to pre-fetch the next data to be sent to the cpu. memory read accesses for multiple banks can be interleaved. in this case, the fifo block handles the multiplexing of appropriate data to the cpu. ? the address written to the memory register is incremented and used to successively pre-fetch data from the memory irrespective of the value on the address bus for each bank, until a new value for a bank is written to the memory register. this is valid only when the address refers to the memory space (400h to ffffh). for example, consider the following sequence of operations: C write the starting (read) address 4000h and bank1 = 01 to the memory register. when rd_n is asserted for three cycles with a[17:16] = 01, the returned data corresponds to addresses 4000h, 4004h and 4008h. remark: once 4000h is written to the memory register for bank1, the bank select value determines the successive incremental addresses used to fetch data. that is, the fetching of data is independent of the address on a[15:0] lines. C write the starting (read) address 4100h and bank2 = 10 to the memory register. when rd_n is asserted for four cycles with a[17:16] = 10, the returned data corresponds to addresses 4100h, 4104h, 4108h and 410ch. consequently, the rd_n assertion with a[17:16] = 01 will return data from 400ch because the bank1 read stopped there in the previous cycle. also, rd_n assertions with a[17:16] = 10 will now return data from 4110h because the bank2 read stopped there in the previous cycle. 7.3.2 pio mode access, memory write cycle the pio memory write access is similar to a normal memory access. it is not necessary to set the pre-fetching address before a write cycle to memory. the isp1761 internal write address will not automatically be incremented during consecutive write accesses, unlike in a series of isp1761 memory read cycles. the memory write address must be incremented before every access.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 21 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 7.3.3 pio mode access, register read cycle the pio register read access is similar to a general register access. it is not necessary to set a pre-fetching address before a register read. the isp1761 register read address will not automatically be incremented during consecutive read accesses, unlike in a series of isp1761 memory read cycles. the isp1761 register read address must be correctly speci?ed before every access. 7.3.4 pio mode access, register write cycle the pio register write access is similar to a general register access. it is not necessary to set a pre-fetching address before a register write. the isp1761 register write address will not automatically be incremented during consecutive write accesses, unlike in a series of isp1761 memory read cycles. the isp1761 register write address must be correctly speci?ed before every access. 7.3.5 dma mode, read and write operations the internal isp1761 host controller dma is a slave dma. the host system processor or dma must ensure the data transfer to or from the isp1761 memory. the isp1761 dma supports a dma burst length of 1, 4, 8 and 16 cycles for both the 16-bit and 32-bit data bus width. dreq will be asserted at the beginning of the ?rst burst of a dma transfer and will be de-asserted on the last cycle, rd_n or wr_n active pulse, of that burst. it will be reasserted shortly after the dack de-assertion, as long as the dma transfer counter was not reached. dreq will be de-asserted on the last cycle when the dma transfer counter is reached and will not be reasserted until the dma reprogramming is performed. both the dreq and dack signals are programmable as active low or active high, according to system requirements. the dma start address must be initialized in the respective register, and the subsequent transfers will automatically increment the internal isp1761 memory address. a register or memory access or access to other system memory can occur in between dma bursts, whenever the bus is released because dack is de-asserted, without affecting the dma transfer counter or the current address. any memory area can be accessed by the systems dma at any starting address because there are no prede?ned memory blocks. the dma transfer must start on a word or double word address, depending on whether the data bus width is set to 16-bit or 32-bit. dma is the most ef?cient method to initialize the payload area, to reduce the cpu usage and overall system loading. the isp1761 does not implement eot to signal the end of a dma transfer. if programmed, an interrupt may be generated by the isp1761 at the end of the dma transfer. the slave dma of the isp1761 will issue a dreq to the dma controller of the system to indicate that it is programmed for transfer and data is ready. the system dma controller may also start a transfer without the need of the dreq, if the isp1761 memory is available for the data transfer and the isp1761 dma programming is completed.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 22 of 163 nxp semiconductors isp1761 hi-speed usb otg controller it is also possible that the systems dma will perform a memory-to-memory type of transfer between the system memory and the isp1761 memory. the isp1761 will be accessed in pio mode. consequently, memory read operations must be preceded by initializing the memory register (address 033ch), as described in section 7.3.1 . no irq will be generated by the isp1761 on completing the dma transfer but an internal processor interrupt may be generated to signal that the dma transfer is completed. this is mainly useful in implementing the double-buffering scheme for data transfer to optimize the usb bandwidth. the isp1761 dma programming involves: ? set the active levels of signals dreq and dack in the hw mode control register. ? the dma start address register contains the ?rst memory address at which the data transfer will start. it must be word-aligned in 16-bit data bus mode and double word aligned in 32-bit data bus mode. ? the programming of the hcdmacon?guration register speci?es: C the type of transfer that will be performed: read or write. C the burst size, expressed in bytes, is speci?ed, regardless of the data bus width. for the same burst size, a double number of cycles will be generated in 16-bit mode data bus width as compared to 32-bit mode. C the transfer length, expressed in number of bytes, de?nes the number of bursts. the dreq will be de-asserted and asserted to generate the next burst, as long as there are bytes to be transferred. at the end of a transfer, the dreq will be de-asserted and an irq can be generated if dmaeotint (bit 3 in the hcinterrupt register) is set. the maximum dma transfer size is equal to the maximum memory size. the transfer size can be an odd or even number of bytes, as required. if the transfer size is an odd number of bytes, the number of bytes transferred by the systems dma is equal to the next multiple of two for the 16-bit data bus width or four for the 32-bit data bus width. for a write operation, however, only the speci?ed odd number of bytes in the isp1761 memory will be affected. C enable enable_dma (bit 1) of the hcdmacon?guration register to determine the assertion of dreq immediately after setting the bit. after programming the preceding parameters, the systems dma may be enabled, waiting for the dreq to start the transfer or immediate transfer may be started. the programming of the systems dma must match the programming of the isp1761 dma parameters. only one dma transfer may take place at a time. a pio mode data transfer may occur simultaneously with a dma data transfer, in the same or a different memory area. 7.4 interrupts the isp1761 will assert the irq according to the source or event in the hcinterrupt register. the main steps to enable the irq assertion are: 1. set global_intr_en (bit 0) in the hw mode control register. 2. de?ne the irq active as level or edge in intr_level (bit 1) of the hw mode control register.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 23 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 3. de?ne the irq polarity as active low or active high in intr_pol (bit 2) of the hw mode control register. these settings must match irq settings of the host processor. by default, interrupt is level-triggered and active low. 4. program the individual interrupt enable bits in the hcinterruptenable register. the software will need to clear the interrupt status bits in the hcinterrupt register before enabling individual interrupt enable bits. additional irq characteristics can be adjusted in the edge interrupt count register, as necessary, applicable only when irq is set to be edge-active; a pulse of a de?ned width is generated every time irq is active. bits 15 to 0 of the edge interrupt count register de?ne the irq pulse width. the maximum pulse width that can be programmed is ffffh, corresponding to a 1 ms pulse width. this setting is necessary for certain processors that may require a different minimum irq pulse width from the default value. the default irq pulse width set at power-on is approximately 500 ns. bits 31 to 24 of the edge interrupt count register de?ne the minimum interval between two interrupts to avoid frequent interrupts to the cpu. the default value of 00h attributed to these bits determines the normal irq generation, without any delay. when a delay is programmed and the irq becomes active after the respective delay, several irq events may have already occurred. all the interrupt events are represented by the respective bits allocated in the hcinterrupt register. there is no mechanism to show the order or the moment occurrence of an interrupt. the asserted bits in the hcinterrupt register can be cleared by writing back the same value to the hcinterrupt register. this means that writing logic 1 to each of the set bits will reset that corresponding bits to the initial inactive state. the irq generation rules that apply according to the preceding settings are: ? if an event of interrupt occurs but the respective bit in the interrupt enable register is not set, then the respective hcinterrupt register bit is set but the interrupt signal is not asserted. an interrupt will be generated when interrupt is enabled and the respective bit in the interrupt enable register is set. ? for a level trigger, an interrupt signal remains asserted until the processor clears the hcinterrupt register by writing logic 1 to clear the hcinterrupt register bits that are set. ? if an interrupt is made edge-sensitive and is asserted, writing to clear the hcinterrupt register will not have any effect because the interrupt will be asserted for a prescribed amount of clock cycles. ? the clock stopping mechanism does not affect the generation of an interrupt. this is useful during the suspend and resume cycles, when an interrupt is generated to signal a wake-up event. the irq generation can also be conditioned by programming the irq mask or and irq mask and registers.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 24 of 163 nxp semiconductors isp1761 hi-speed usb otg controller with the help of the irq mask and and irq mask or registers for each type of transfer (iso, int and bulk), software can determine which ptds get priority and an interrupt will be generated when the and or or conditions are met. the ptds that are set will wait until the respective bits of the remaining ptds are set and then all ptds generate an interrupt request to the cpu together. the registers de?nition shows that the and or or conditions are applicable to the same category of ptds: iso, int and atl. when an irq is generated, the ptd done map registers and the respective v bits will show which ptds were completed. the rules that apply to the irq mask and or irq mask or settings are: ? the or mask has a higher priority over the and mask. an irq is generated if bit n of done map is set and the corresponding bit n of the or mask register is set. ? if the or mask for any done bit is not set, then the and mask comes into picture. an irq is generated if all the corresponding done bits of the and mask register are set. for example: if bits 2, 4 and 10 are set in the and mask register, an irq is generated only if bits 2, 4, 10 of the done map are set. ? if using the irq interval setting for the bulk ptd, an interrupt will only occur at the regular time interval as programmed in the atl done timeout register. even if an interrupt event occurs before the time-out of the register, no irq will be generated until the time is up. for an example on using the irq mask and or irq mask or registers, without the atl done timeout register, see t ab le 5 . the and function: activate the irq only if ptds 1, 2 and 4 are done. the or function: if any of the ptds 7, 8 or 9 are done, an irq for each of the ptd will be raised. 7.5 phase-locked loop (pll) clock multiplier the internal pll requires a 12 mhz input, which can be a 12 mhz crystal or a 12 mhz clock already existing in the system with a precision better than 50 ppm. this allows the use of a low-cost 12 mhz crystal that also minimizes electromagnetic interference (emi). when an external crystal is used, make sure the clkin pin is connected to v cc(i/o) . table 5. using the irq mask and or irq mask or registers ptd and register or register time ptd done irq 11 0 1ms1 - 21 0 - 1 - 30 0 - - - 4 1 0 3 ms 1 active because of and 50 0 - - - 60 0 - - - 7 0 1 5 ms 1 active because of or 8 0 1 6 ms 1 active because of or 9 0 1 7 ms 1 active because of or
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 25 of 163 nxp semiconductors isp1761 hi-speed usb otg controller the pll block generates all the main internal clocks required for normal functionality of various blocks: 30 mhz, 48 mhz and 60 mhz. no external components are required for the pll operation. 7.6 power management the isp1761 implements a ?exible power management scheme, allowing various power saving stages. the usual powering scheme implies programming ehci registers and the internal hi-speed usb (usb 2.0) hub in the same way it is done in a pci hi-speed usb host controller with a hi-speed usb hub attached. while the isp1761 is set in suspend mode, main internal clocks will be stopped to ensure minimum power consumption. an internal lazyclock of 100 khz 40 % will continue running. this allows initiating a resume on one of these events: ? external usb device connect or disconnect ? cs_n signal asserted when the isp1761 is accessed ? driving the hc_suspend/wakeup_n pin to a low logical level will wake up the host controller, and driving the dc_suspend/wakeup_n pin to a low logical level will wake up the peripheral controller the hc_suspend/wakeup_n and dc_suspend/wakeup_n pins are bidirectional. these pins must be connected to the gpio pins of a processor. the awake state can be veri?ed by reading the low level of this pin. if the level is high, it means that the isp1761 is in the suspend state. hc_suspend/wakeup_n and dc_suspend/wakeup_n require pull-up resistors because in the isp1761 suspended state these pins become 3-state and can be pulled down, driving them externally by switching the processors gpio lines to output mode to generate the isp1761 wake-up. the hc_suspend/wakeup_n and dc_suspend/wakeup_n pins are 3-state output and also input to the internal wake-up logic. when in suspend mode, the isp1761 internal wake-up circuitry will sense the status of the hc_suspend/wakeup_n and dc_suspend/wakeup_n pins: ? if the pins remain pulled-up, no wake-up will be generated because a high is sensed by the internal wake-up circuit. ? if the pins are externally pulled low, for example, by the gpio lines or just a test by jumpers, the input to the wake-up circuitry becomes low and the wake-up is internally initiated. the resume state has a clock-off count timer de?ned by bits 31 to 16 of the power down control register. the default value of this timer is 10 ms, meaning that the resume state will be maintained for 10 ms. if during this time, the run/stop bit in the usbcmd register is set to logic 1, the host controller will go into a permanent resume; the normal functional state. if the run/stop bit is not set during the time determined by the clock-off
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 26 of 163 nxp semiconductors isp1761 hi-speed usb otg controller count, the isp1761 will switch back to suspend mode after the speci?ed time. the maximum delay that can be programmed in the clock-off count ?eld is approximately 500 ms. additionally, the power down control register allows isp1761 internal blocks to disable for lower power consumption as de?ned in section 8.3.11 . the lowest suspend current, i cc(susp) , that can be achieved is approximately 150 m a at ambient temperature of +25 c. the suspend current will increase with the increase in temperature, with approximately 300 m a at 40 c and up to a typical 1 ma at 85 c. the system is not in suspend mode when its temperature increases above 40 c. therefore, even a 1 ma current consumption by the isp1761 in suspend mode can be considered negligible. in normal environmental conditions, when the system is in suspend mode, the maximum isp1761 temperature is approximately 40 c, determined by the ambient temperature. therefore, the isp1761 maximum suspend current will be below 300 m a. an alternative solution to achieve a very low suspend current is to completely switch off the v cc(5v0) power input by using an external pmos transistor, controlled by one of the gpio pins of the processor. this is possible because the isp1761 can be used in hybrid mode, which allows only the v cc(i/o) powered on to avoid loading of the system bus. when the isp1761 power is always on, the time from wake-up to suspend will be approximately 100 ms. it is necessary to wait for the clkready interrupt assertion before programming the isp1761 because internal clocks are stopped during deep sleep suspend and restarted after the ?rst wake-up event. the occurrence of the clkready interrupt means that internal clocks are running and the normal functionality is achieved. it is estimated that the clkready interrupt will be generated less than 100 m s after the wake-up event, if the power to the isp1761 was on during suspend. if the isp1761 is used in hybrid mode and v cc(5v0) is off during suspend, a 2 ms reset pulse is required when the power is switched back on, before the resume programming sequence starts. this will ensure that the internal clocks are running and all logics reach a stable initial state. 7.7 power supply figure 7 shows the isp1761 power supply connection.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 27 of 163 nxp semiconductors isp1761 hi-speed usb otg controller figure 8 shows the most commonly used power supply connection. this ?gure shows the lqfp pinout. for the tfbga ballout, see t ab le 2 . a 4.7 m f-to-10 m f electrolytic or tantalum capacitor is required on any one of the pins 5, 50 or 118. all the electrolytic or tantalum capacitors must be of low esr type (0.2 w to 2 w ). fig 7. isp1761 power supply connection 004aaa539 6, 7 v cc(i/o) ISP1761BE 3.3 v to 5 v v cc(5v0) 10, 40, 48, 59, 67, 75, 83, 94, 104, 115 reg1v8 85 10 f 100 nf 100 nf 100 nf 1.65 v to 3.6 v reg1v8 5, 50, 118 100 nf reg3v3 9 10 f 100 nf 126 3.3 v v cc(c_in) 100 nf
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 28 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 7.7.1 hybrid mode t ab le 6 shows the description of hybrid mode. in hybrid mode (see figure 9 ), v cc(5v0) can be switched off using an external pmos transistor, controlled using one of the gpio pins of the processor. this helps to reduce the suspend current, i cc(i/o) , below 100 m a. if the isp1761 is used in hybrid mode and v cc(5v0) is off during suspend, a 2 ms reset pulse is required when power is switched back on, before the resume programming sequence starts. this ?gure shows the lqfp pinout. for the tfbga ballout, see t ab le 2 . a 4.7 m f-to-10 m f electrolytic or tantalum capacitor is required on any one of the pins 5, 50 or 118. all the electrolytic or tantalum capacitors must be of low esr type (0.2 w to 2 w ). fig 8. most commonly used power supply connection 004aaa540 v cc(5v0) , v cc(i/o) , v cc(c_in) ISP1761BE 6, 7, 10, 40, 48, 59, 67, 75, 83, 94, 104, 115, 126 reg1v8 85 10 f 100 nf 100 nf 3.3 v reg1v8 5, 50, 118 100 nf reg3v3 9 10 f 100 nf table 6. hybrid mode voltage status v cc(5v0) off v cc(i/o) on
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 29 of 163 nxp semiconductors isp1761 hi-speed usb otg controller t ab le 7 shows the status of output pins during hybrid mode. 7.8 overcurrent detection the isp1761 can implement a digital or analog overcurrent detection scheme. bit 15 of the hw mode control register can be programmed to select the analog or digital overcurrent detection. an analog overcurrent detection circuit is integrated on-chip. the main features of this circuit are self reporting, automatic resetting, low-trip time and low cost. this circuit offers an easy solution at no extra hardware cost on the board. the port power will automatically be disabled by the isp1761 on an overcurrent event occurrence, by de-asserting the pswn_n signal without any software intervention. when using the integrated analog overcurrent detection, the range of the overcurrent detection voltage for the isp1761 is 45 mv to 100 mv. calculation of the external components must be based on the 45 mv value, with the actual overcurrent detection threshold usually positioned in the middle of the interval. this ?gure shows the lqfp pinout. for the tfbga ballout, see t ab le 2 . a 4.7 m f-to-10 m f electrolytic or tantalum capacitor is required on any one of the pins 5, 50 or 118. all the electrolytic or tantalum capacitors must be of low esr type (0.2 w to 2 w ). fig 9. hybrid mode table 7. pin status during hybrid mode pins v cc(i/o) v cc(5v0) status data[31:0], a[17:1], test, hc_irq, dc_irq, hc_dreq, dc_dreq, hc_dack, dc_dack, hc_suspend/wakeup_n, dc_suspend/wakeup_n on on normal on off high-z off x unde?ned cs_n, reset_n, rd_n, wr_n on x input off x unde?ned 004aaa676 6, 7 v cc(i/o) ISP1761BE 3.3 v to 5 v v cc(5v0) 10, 40, 48, 59, 67, 75, 83, 94, 104, 115 reg1v8 85 10 f 100 nf 100 nf 100 nf 1.65 v to 3.6 v reg1v8 5, 50, 118 100 nf reg3v3 9 10 f 100 nf 126 3.3 v v cc(c_in) 100 nf controlled by the cpu
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 30 of 163 nxp semiconductors isp1761 hi-speed usb otg controller for an overcurrent limit of 500 ma per port, a pmos transistor with r dson of approximately 100 m w is required. if a pmos transistor with a lower r dson is used, the analog overcurrent detection can be adjusted using a series resistor; see figure 10 . d v pmos = d v oc(trip) = d v trip(intrinsic) - (i oc(nom) r td ), where: d v pmos = voltage drop on pmos i oc(nom) = 1 m a the digital overcurrent scheme requires using an external power switch with integrated overcurrent detection, such as lm3526, mic2526 (2 ports) or lm3544 (4 ports). these devices are controlled by pswn_n signals corresponding to each port. in the case of overcurrent occurrence, these devices will assert ocn_n signals. on ocn_n assertion, the isp1761 cuts off the port power by de-asserting pswn_n. the external integrated power switch will also automatically cut off the port power in the case of an overcurrent event, by implementing a thermal shutdown. an internal delay ?lter will prevent false overcurrent reporting because of in-rush currents when plugging a usb device. because of this internal delay, as soon as ocn_n is asserted, pswn_n will switch off the external pmos in less than 15 ms. remark: if port 1 is used in otg mode or as a dual-role device, the analog overcurrent detection must be used, same on all three ports, because the same bit (bit 15 of the hw mode control register) determines the overcurrent detection type. 7.9 power-on reset (por) when v cc(i/o) is directly connected to the reset_n pin, the internal por pulse width, t porp , will typically be 800 ns. the pulse is started when v cc(5v0) rises above v trip of 1.2 v. to give a better view of the functionality, figure 11 shows a possible curve of v cc(5v0) with dips at t2 to t3 and t4 to t5. if the dip at t4 to t5 is too short, that is, < 11 m s, the internal por pulse will not react and will remain low. the internal por starts with a 1 at t0. at t1, the detector will see the passing of the trip level and a delay element will add another t porp before it drops to 0. (1) r td is optional. fig 10. adjusting analog overcurrent detection limit (optional) 004aaa662 ref5v r td (1) 5 v isp1761 ocn_n pswn_n i oc
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 31 of 163 nxp semiconductors isp1761 hi-speed usb otg controller the internal por pulse will be generated whenever v cc(5v0) drops below v trip for more than 11 m s. the recommended reset input pulse length at power-on must be at least 2 ms to ensure that internal clocks are stable. the reset_n pin can be either connected to v cc(i/o) , using the internal por circuit or externally controlled by the microcontroller, asic, and so on. figure 12 shows the availability of the clock with respect to the external por. (1) porp = power-on reset pulse. fig 11. internal power-on reset timing stable external clock is available at a. fig 12. clock with respect to the external power-on reset 004aaa584 v cc(5v0) t0 t1 t2 t3 t4 t5 v trip t porp porp (1) t porp reset_n external clock a 004aaa583
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 32 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 8. host controller t ab le 8 shows the bit description of the registers. ? all registers range from 0000h to 03ffh. these registers can be read or written as double word, that is 32-bit data. ? operational registers range from 0000h to 01ffh. host controller-speci?c and otg controller-speci?c registers range from 0300h to 03ffh. peripheral controller-speci?c registers range from 0200h to 02ffh. ? 17 address lines (15/14 addresses, necessary to address up to 64 kb range on a 16-bit/32-bit data bus con?guration + additional 2 addresses for bank select/virtual segmentation for memory address access time improvement). a0 is not de?ned because 8-bit access is not implemented. table 8. host controller-speci?c register overview address register reset value references ehci capability registers 0000h caplength 20h section 8.1.1 on page 33 0002h hciversion 0100h section 8.1.2 on page 33 0004h hcsparams 0000 0011h section 8.1.3 on page 33 0008h hccparams 0000 0086h section 8.1.4 on page 34 ehci operational registers 0020h usbcmd 0008 0b00h section 8.2.1 on page 35 0024h usbsts 0000 0000h section 8.2.2 on page 36 0028h usbintr 0000 0000h section 8.2.3 on page 37 002ch frindex 0000 0000h section 8.2.4 on page 37 0060h configflag 0000 0000h section 8.2.5 on page 38 0064h portsc1 0000 2000h section 8.2.6 on page 39 0130h iso ptd done map 0000 0000h section 8.2.7 on page 40 0134h iso ptd skip map ffff ffffh section 8.2.8 on page 41 0138h iso ptd last ptd 0000 0000h section 8.2.9 on page 41 0140h int ptd done map 0000 0000h section 8.2.10 on page 41 0144h int ptd skip map ffff ffffh section 8.2.11 on page 41 0148h int ptd last ptd 0000 0000h section 8.2.12 on page 42 0150h atl ptd done map 0000 0000h section 8.2.13 on page 42 0154h atl ptd skip map ffff ffffh section 8.2.14 on page 42 0158h atl ptd last ptd 0000 0000h section 8.2.15 on page 43 con?guration registers 0300h hw mode control 0000 0100h section 8.3.1 on page 43 0304h hcchipid 0001 1761h section 8.3.2 on page 45 0308h hcscratch 0000 0000h section 8.3.3 on page 45 030ch sw reset 0000 0000h section 8.3.4 on page 45 0330h hcdmacon?guration 0000 0000h section 8.3.5 on page 46 0334h hcbufferstatus 0000 0000h section 8.3.6 on page 47 0338h atl done timeout 0000 0000h section 8.3.7 on page 48
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 33 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 8.1 ehci capability registers 8.1.1 caplength register the bit description of the capability length (caplength) register is given in t ab le 9 . 8.1.2 hciversion register t ab le 10 shows the bit description of the host controller interface version number (hciversion) register. 8.1.3 hcsparams register the host controller structural parameters (hcsparams) register is a set of ?elds that are structural parameters. the bit allocation is given in t ab le 11 . 033ch memory 0000 0000h section 8.3.8 on page 48 0340h edge interrupt count 0000 000fh section 8.3.9 on page 49 0344h dma start address 0000 0000h section 8.3.10 on page 50 0354h power down control 03e8 1ba0h section 8.3.11 on page 51 interrupt registers 0310h hcinterrupt 0000 0000h section 8.4.1 on page 53 0314h hcinterruptenable 0000 0000h section 8.4.2 on page 55 0318h iso irq mask or 0000 0000h section 8.4.3 on page 57 031ch int irq mask or 0000 0000h section 8.4.4 on page 57 0320h atl irq mask or 0000 0000h section 8.4.5 on page 57 0324h iso irq mask and 0000 0000h section 8.4.6 on page 58 0328h int irq mask and 0000 0000h section 8.4.7 on page 58 032ch atl irq mask and 0000 0000h section 8.4.8 on page 58 table 8. host controller-speci?c register overview continued address register reset value references table 9. caplength - capability length register (address 0000h) bit description bit symbol access value description 7 to 0 caplength [7:0] r 20h capability length : this is used as an offset. it is added to the register base to ?nd the beginning of the operational register space. table 10. hciversion - host controller interface version number register (address 0002h) bit description bit symbol access value description 15 to 0 hciversion [15:0] r 0100h host controller interface version number : it contains a bcd encoding of the version number of the interface to which the host controller interface conforms. table 11. hcsparams - host controller structural parameters register (address 0004h) bit allocation bit 31 30 29 28 27 26 25 24 symbol reserved reset 00000000 access rrrrrrrr
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 34 of 163 nxp semiconductors isp1761 hi-speed usb otg controller [1] for details on register bit description, refer to ref . 2 enhanced host controller interf ace speci? cation f or univ ersal ser ial bus re v . 1.0 . 8.1.4 hccparams register the host controller capability parameters (hccparams) register is a 4 bytes register, and the bit allocation is given in t ab le 13 . bit 23 22 21 20 19 18 17 16 symbol dpn[3:0] reserved p_indicat or reset 00000000 access rrrrrrrr bit 15 14 13 12 11 10 9 8 symbol n_cc[3:0] n_pcc[3:0] reset 00000000 access rrrrrrrr bit 7 6 5 4 3 2 1 0 symbol prr reserved ppc n_ports[3:0] reset 00010001 access rrrrrrrr table 12. hcsparams - host controller structural parameters register (address 0004h) bit description bit symbol description [1] 31 to 24 - reserved; write logic 0 23 to 20 dpn[3:0] debug port number : this ?eld identi?es which of the host controller ports is the debug port. 19 to 17 - reserved; write logic 0 16 p_indicator port indicators : this bit indicates whether the ports support port indicator control. 15 to 12 n_cc[3:0] number of companion controller : this ?eld indicates the number of companion controllers associated with this hi-speed usb host controller. 11 to 8 n_pcc[3:0] number of ports per companion controller : this ?eld indicates the number of ports supported per companion host controller. 7 prr port routing rules : this ?eld indicates the method used to map ports to the companion controllers. 6 to 5 - reserved; write logic 0 4 ppc port power control : this ?eld indicates whether the host controller implementation includes port power control. 3 to 0 n_ports[3:0] n_ports : this ?eld speci?es the number of physical downstream ports implemented on this host controller. table 13. hccparams - host controller capability parameters register (address 0008h) bit allocation bit 31 30 29 28 27 26 25 24 symbol reserved reset 00000000 access rrrrrrrr
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 35 of 163 nxp semiconductors isp1761 hi-speed usb otg controller [1] for details on register bit description, refer to ref . 2 enhanced host controller interf ace speci? cation f or univ ersal ser ial bus re v . 1.0 . 8.2 ehci operational registers 8.2.1 usbcmd register the usb command (usbcmd) register indicates the command to be executed by the serial host controller. writing to this register causes a command to be executed. t ab le 15 shows the usbcmd register bit allocation. bit 23 22 21 20 19 18 17 16 symbol reserved reset 00000000 access rrrrrrrr bit 15 14 13 12 11 10 9 8 symbol eecp[7:0] reset 00000000 access rrrrrrrr bit 7 6 5 4 3 2 1 0 symbol ist[3:0] reserved aspc pflf reserved reset 10000110 access rrrrrrrr table 14. hccparams - host controller capability parameters register (address 0008h) bit description bit symbol description [1] 31 to 16 - reserved; write logic 0 15 to 8 eecp[7:0] ehci extended capabilities pointer : default = implementation dependent. this optional ?eld indicates the existence of a capabilities list. 7 to 4 ist[3:0] isochronous scheduling threshold : default = implementation dependent. this ?eld indicates, relative to the current position of the executing host controller, where software can reliably update the isochronous schedule. 3 - reserved; write logic 0 2 aspc asynchronous scheduling park capability : default = implementation dependent. if this bit is set to logic 1, the host controller supports the park feature for high-speed transfer descriptors in the asynchronous schedule. 1 pflf programmable frame list flag : default = implementation dependent. if this bit is cleared, the system software must use a frame list length of 1024 elements with this host controller. if pflf is set, the system software can specify and use a smaller frame list and con?gure the host through the usbcmd register fls ?eld. 0 - reserved; write logic 0
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 36 of 163 nxp semiconductors isp1761 hi-speed usb otg controller [1] the reserved bits should always be written with the reset value. [1] for details on register bit description, refer to ref . 2 enhanced host controller interf ace speci? cation f or univ ersal ser ial bus re v . 1.0 . 8.2.2 usbsts register the usb status (usbsts) register indicates pending interrupts and various states of the host controller. the status resulting from a transaction on the serial bus is not indicated in this register. software clears the register bits by writing ones to them. the bit allocation is given in t ab le 17 . table 15. usbcmd - usb command register (address 0020h) bit allocation bit 31 30 29 28 27 26 25 24 symbol reserved [1] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 23 22 21 20 19 18 17 16 symbol reserved [1] reset 00001000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 15 14 13 12 11 10 9 8 symbol reserved [1] reset 00001011 access r/w r/w r/w r/w r/w r/w r/w r/w bit 7 6 5 4 3 2 1 0 symbol lhcr reserved [1] hcreset rs reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w table 16. usbcmd - usb command register (address 0020h) bit description bit symbol description [1] 31 to 8 - reserved 7 lhcr light host controller reset (optional): if implemented, it allows the driver software to reset the ehci controller without affecting the state of the ports or the relationship to the companion host controllers. if not implemented, a read of this ?eld will always return logic 0. 6 to 2 - reserved 1 hcreset host controller reset : this control bit is used by the software to reset the host controller. 0rs run/stop : 1 = run, 0 = stop. when set, the host controller executes the schedule. table 17. usbsts - usb status register (address 0024h) bit allocation bit 31 30 29 28 27 26 25 24 symbol reserved [1] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 37 of 163 nxp semiconductors isp1761 hi-speed usb otg controller [1] the reserved bits should always be written with the reset value. [1] for details on register bit description, refer to ref . 2 enhanced host controller interf ace speci? cation f or univ ersal ser ial bus re v . 1.0 . 8.2.3 usbintr register the usb interrupt (usbintr) register is a read or write register located at 0028h. all the bits in this register are reserved. 8.2.4 frindex register the frame index (frindex) register is used by the host controller to index into the periodic frame list. the register updates every 125 m s (once each microframe). bits n to 3 are used to select a particular entry in the periodic frame list during periodic schedule execution. the number of bits used for the index depends on the size of the frame list as set by the system software in the fls (frame list size) ?eld of the usbcmd register. this register must be written as a double word. a word-only write (16-bit mode) produces unde?ned results. a write to this register while the rs (run/stop) bit is set produces unde?ned results. writes to this register also affect the sof value. the bit allocation is given in t ab le 19 . bit 23 22 21 20 19 18 17 16 symbol reserved [1] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 15 14 13 12 11 10 9 8 symbol reserved [1] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 7 6 5 4 3 2 1 0 symbol reserved [1] flr pcd reserved [1] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w table 18. usbsts - usb status register (address 0024h) bit description bit symbol description [1] 31 to 4 - reserved; write logic 0 3 flr frame list rollover : the host controller sets this bit to logic 1 when the frame list index rolls over from its maximum value to zero. 2 pcd port change detect : the host controller sets this bit to logic 1 when any port, where the po bit is cleared, has a change to a one or a fpr bit changes to a one as a result of a j-k transition detected on a suspended port. 1 to 0 - reserved table 19. frindex - frame index register (address: 002ch) bit allocation bit 31 30 29 28 27 26 25 24 symbol reserved [1] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 38 of 163 nxp semiconductors isp1761 hi-speed usb otg controller [1] the reserved bits should always be written with the reset value. [1] for details on register bit description, refer to ref . 2 enhanced host controller interf ace speci? cation f or univ ersal ser ial bus re v . 1.0 . 8.2.5 configflag register the bit allocation of the con?gure flag (configflag) register is given in t ab le 21 . [1] the reserved bits should always be written with the reset value. bit 23 22 21 20 19 18 17 16 symbol reserved [1] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 15 14 13 12 11 10 9 8 symbol reserved [1] frindex[13:8] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 7 6 5 4 3 2 1 0 symbol frindex[7:0] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w table 20. frindex - frame index register (address: 002ch) bit description bit symbol description [1] 31 to 14 - reserved 13 to 0 frindex [13:0] frame index : bits in this register are used for the frame number in the sof packet and as the index into the frame list. the value in this register increments at the end of each time frame. for example, microframe. table 21. configflag - con?gure flag register (address 0060h) bit allocation bit 31 30 29 28 27 26 25 24 symbol reserved [1] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 23 22 21 20 19 18 17 16 symbol reserved [1] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 15 14 13 12 11 10 9 8 symbol reserved [1] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 7 6 5 4 3 2 1 0 symbol reserved [1] cf reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 39 of 163 nxp semiconductors isp1761 hi-speed usb otg controller [1] for details on register bit description, refer to ref . 2 enhanced host controller interf ace speci? cation f or univ ersal ser ial bus re v . 1.0 . 8.2.6 portsc1 register the port status and control (portsc) register (bit allocation: t ab le 23 ) is in the power well. it is reset by hardware only when the auxiliary power is initially applied or in response to a host controller reset. the initial conditions of a port are: ? no peripheral connected ? port disabled if the port has power control, software cannot change the state of the port until it sets port power bits. software must not attempt to change the state of the port until the power is stable on the port (maximum delay is 20 ms from the transition). [1] the reserved bits should always be written with the reset value. table 22. configflag - con?gure flag register (address 0060h) bit description bit symbol description [1] 31 to 1 - reserved 0cf con?gure flag : the host software sets this bit as the last action when it is con?guring the host controller. this bit controls the default port-routing control logic. table 23. portsc1 - port status and control 1 register (address 0064h) bit allocation bit 31 30 29 28 27 26 25 24 symbol reserved [1] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 23 22 21 20 19 18 17 16 symbol reserved [1] ptc[3:0] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 15 14 13 12 11 10 9 8 symbol pic[1:0] po pp ls[1:0] reserved [1] pr reset 00100000 access r r r/w r/w r/w r/w r/w r bit 7 6 5 4 3 2 1 0 symbol susp fpr reserved [1] ped ecsc eccs reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 40 of 163 nxp semiconductors isp1761 hi-speed usb otg controller [1] for details on register bit description, refer to ref . 2 enhanced host controller interf ace speci? cation f or univ ersal ser ial bus re v . 1.0 . [2] these ?elds read logic 0, if the pp (port power) bit in register portsc 1 is logic 0. 8.2.7 iso ptd done map register the bit description of the register is given in t ab le 25 . this register represents a direct map of the done status of the 32 ptds. the bit corresponding to a certain ptd will be set to logic 1 as soon as that ptd execution is completed. reading the done map register will clear all the bits that are set to logic 1, and the next reading will re?ect the updated status of new executed ptds. table 24. portsc1 - port status and control 1 register (address 0064h) bit description bit symbol description [1] 31 to 20 - reserved 19 to 16 ptc[3:0] port test control : when this ?eld is zero, the port is not operating in test mode. a non-zero value indicates that it is operating in test mode indicated by the value. 15 to 14 pic[1:0] port indicator control : writing to this ?eld has no effect if the p_indicator bit in the hcsparams register is logic 0. for a description on how these bits are implemented, refer to ref . 1 univ ersal ser ial bus speci? cation re v . 2.0 . [2] 13 po port owner : this bit unconditionally goes to logic 0 when the con?gured bit in the configflag register makes a logic 0 to logic 1 transition. this bit unconditionally goes to logic 1 whenever the con?gured bit is logic 0. 12 pp port power : the function of this bit depends on the value of the ppc (port power control) ?eld in the hcsparams register. 11 to 10 ls[1:0] line status : this ?eld re?ects the current logical levels of the dp (bit 11) and dm (bit 10) signal lines. 9 - reserved 8pr port reset : logic 1 means the port is in the reset state. logic 0 means the port is not in reset. [2] 7 susp suspend : logic 1 means the port is in the suspend state. logic 0 means the port is not suspended. [2] 6 fpr force port resume : logic 1 means resume detected or driven on the port. logic 0 means no resume (k-state) detected or driven on the port. [2] 5 to 3 - reserved 2 ped port enabled/disabled : logic 1 means enable. logic 0 means disable. [2] 1 ecsc connect status change : logic 1 means change in eccs. logic 0 means no change. [2] 0 eccs current connect status : logic 1 indicates a peripheral is present on the port. logic 0 indicates no peripheral is present. [2] table 25. iso ptd done map register (address 0130h) bit description bit symbol access value description 31 to 0 iso_ptd_done _ map[31:0] r 0000 0000h iso ptd done map : done map for each of the 32 ptds for the iso transfer
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 41 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 8.2.8 iso ptd skip map register t ab le 26 shows the bit description of the register. when a bit in the ptd skip map is set to logic 1 that ptd will be skipped although its v bit may be set. the information in that ptd is not processed. for example, nextptdpointer will not affect the order of processing of ptds. the skip bit must not normally be set on the position indicated by nextptdpointer. 8.2.9 iso ptd last ptd register t ab le 27 shows the bit description of the iso ptd last ptd register. once the lastptd bit corresponding to a ptd is set, this will be the last ptd processed (checking v = 1) in that ptd category. subsequently, the process will restart with the ?rst ptd of that group. this is useful to reduce the time in which all the ptds, the respective memory space, would be checked, especially if only a few ptds are de?ned. the lastptd bit must normally be set to a higher position than any other position indicated by the nextptdpointer from an active ptd. 8.2.10 int ptd done map register the bit description of the register is given in t ab le 28 . this register represents a direct map of the done status of the 32 ptds. the bit corresponding to a certain ptd will be set to logic 1 as soon as that ptd execution is completed. reading the done map register will clear all the bits that are set to logic 1, and the next reading will re?ect the updated status of new executed ptds. 8.2.11 int ptd skip map register t ab le 29 shows the bit description of the int ptd skip map register. table 26. iso ptd skip map register (address 0134h) bit description bit symbol access value description 31 to 0 iso_ptd_skip _ map[31:0] r/w ffff ffffh iso ptd skip map : skip map for each of the 32 ptds for the iso transfer table 27. iso ptd last ptd register (address 0138h) bit description bit symbol access value description 31 to 0 iso_ptd_last_ ptd[31:0] r/w 0000 0000h iso ptd last ptd : last ptd of the 32 ptds. 1h one ptd in iso 2h two ptds in iso 4h three ptds in iso table 28. int ptd done map register (address 0140h) bit description bit symbol access value description 31 to 0 int_ptd_done _ map[31:0] r 0000 0000h int ptd done map : done map for each of the 32 ptds for the int transfer
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 42 of 163 nxp semiconductors isp1761 hi-speed usb otg controller when a bit in the ptd skip map is set to logic 1 that ptd will be skipped although its v bit may be set. the information in that ptd is not processed. for example, nextptdpointer will not affect the order of processing of ptds. the skip bit should not normally be set on the position indicated by nextptdpointer. 8.2.12 int ptd last ptd register the bit description of the register is given in t ab le 30 . once the lastptd bit corresponding to a ptd is set, this will be the last ptd processed (checking v = 1) in that ptd category. subsequently, the process will restart with the ?rst ptd of that group. this is useful to reduce the time in which all the ptds, the respective memory space, would be checked, especially if only a few ptds are de?ned. the lastptd bit must normally be set to a higher position than any other position indicated by the nextptdpointer from an active ptd. 8.2.13 atl ptd done map register t ab le 31 shows the bit description of the atl ptd done map register. this register represents a direct map of the done status of the 32 ptds. the bit corresponding to a certain ptd will be set to logic 1 as soon as that ptd execution is completed. reading the done map register will clear all the bits that are set to logic 1, and the next reading will re?ect the updated status of new executed ptds. 8.2.14 atl ptd skip map register the bit description of the register is given in t ab le 32 . table 29. int ptd skip map register (address 0144h) bit description bit symbol access value description 31 to 0 int_ptd_skip_ map[31:0] r/w ffff ffffh int ptd skip map : skip map for each of the 32 ptds for the int transfer table 30. int ptd last ptd register (address 0148h) bit description bit symbol access value description 31 to 0 int_ptd_last_ ptd[31:0] r/w 0000 0000h int ptd last ptd : last ptd of the 32 ptds. 1h one ptd in int 2h two ptds in int 3h three ptds in int table 31. atl ptd done map register (address 0150h) bit description bit symbol access value description 31 to 0 atl_ptd_done_ map[31:0] r 0000 0000h atl ptd done map : done map for each of the 32 ptds for the atl transfer table 32. atl ptd skip map register (address 0154h) bit description bit symbol access value description 31 to 0 atl_ptd_skip_ map[31:0] r/w ffff ffffh atl ptd skip map : skip map for each of the 32 ptds for the atl transfer
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 43 of 163 nxp semiconductors isp1761 hi-speed usb otg controller when a bit in the ptd skip map is set to logic 1 that ptd will be skipped although its v bit may be set. the information in that ptd is not processed. for example, nextptdpointer will not affect the order of processing of ptds. the skip bit should not normally be set on the position indicated by nextptdpointer. 8.2.15 atl ptd last ptd register the bit description of the atl ptd last ptd register is given in t ab le 33 . once the lastptd bit corresponding to a ptd is set, this will be the last ptd processed (checking v = 1) in that ptd category. subsequently, the process will restart with the ?rst ptd of that group. this is useful to reduce the time in which all the ptds, the respective memory space, would be checked, especially if only a few ptds are de?ned. the lastptd bit must normally be set to a higher position than any other position indicated by the nextptdpointer from an active ptd. 8.3 con?guration registers 8.3.1 hw mode control register t ab le 34 shows the bit allocation of the register. table 33. atl ptd last ptd register (address 0158h) bit description bit symbol access value description 31 to 0 atl_ptd_last_ ptd[31:0] r/w 0000 0000h atl ptd last ptd : last ptd of the 32 ptds. 1h one ptd in atl 2h two ptds in atl 4h three ptds in atl table 34. hw mode control - hardware mode control register (address 0300h) bit allocation bit 31 30 29 28 27 26 25 24 symbol all_atx_ reset reserved [1] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 23 22 21 20 19 18 17 16 symbol reserved [1] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 15 14 13 12 11 10 9 8 symbol ana_digi_ oc reserved [1] dev_dma comn_irq comn_ dma data_bus _width reset 00000 0 0 1 access r/w r/w r/w r/w r/w r/w r/w r/w bit 7 6 5 4 3 2 1 0 symbol reserved dack_ pol dreq_ pol reserved [1] intr_pol intr_ level global_ intr_en reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 44 of 163 nxp semiconductors isp1761 hi-speed usb otg controller [1] the reserved bits should always be written with the reset value. table 35. hw mode control - hardware mode control register (address 0300h) bit description bit symbol description 31 all_atx_reset all atx reset : for debugging purposes (not used normally). 1 enable reset, then write back logic 0 0 no reset 30 to 16 - reserved; write logic 0 15 ana_digi_oc analog digital overcurrent : this bit selects analog or digital overcurrent detection on pins oc1_n/v bus , oc2_n and oc3_n. 0 digital overcurrent 1 analog overcurrent 14 to 12 - reserved; write logic 0 11 dev_dma device dma : when this bit and bit 9 are set, dc_dreq and dc_dack peripheral signals are selected on the hc_dreq and hc_dack pins. 10 comn_int common irq : when this bit is set, dc_irq will be generated on the hc_irq pin. 9 comn_dma common dma : when this bit and bit 11 are set, the dc_dreq and dc_dack peripheral signals are routed to the hc_dreq and hc_dack pins. 8 data_bus_width data bus width : 0 de?nes a 16-bit data bus width 1 sets a 32-bit data bus width remark: setting this bit will affect all the controllers on the chip: host controller, peripheral controller and otg controller. 7 - reserved; write logic 0 6 dack_pol dack polarity : 1 indicates that the dack input is active high 0 indicates active low 5 dreq_pol dreq polarity : 1 indicates that the dreq output is active high 0 indicates active low 4 to 3 - reserved; write logic 0
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 45 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 8.3.2 hcchipid register read this register to get the id of the isp1761. this upper word of the register contains the hardware version number and the lower word contains the chip id. t ab le 36 shows the bit description of the register. 8.3.3 hcscratch register this register is for testing and debugging purposes only. the value read back must be the same as the value that was written. the bit description of this register is given in t ab le 37 . 8.3.4 sw reset register t ab le 38 shows the bit allocation of the register. 2 intr_pol interrupt polarity : 0 active low 1 active high 1 intr_level interrupt level : 0 int is level triggered. 1 int is edge triggered. a pulse of certain width is generated. 0 global_intr_en global interrupt enable : this bit must be set to logic 1 to enable irq signal assertion. 0 irq assertion disabled. irq will never be asserted, regardless of other settings or irq events. 1 irq assertion enabled. irq will be asserted according to the hcinterruptenable register, and events setting and occurrence. table 35. hw mode control - hardware mode control register (address 0300h) bit description continued bit symbol description table 36. hcchipid - host controller chip identi?er register (address 0304h) bit description bit symbol access value description 31 to 0 chipid[31:0] r 0001 1761h chip id : this register represents the hardware version number (0001h) and the chip id (1761h) for the host controller. table 37. hcscratch - host controller scratch register (address 0308h) bit description bit symbol access value description 31 to 0 scratch[31:0] r/w 0000 0000h scratch : for testing and debugging purposes table 38. sw reset - software reset register (address 030ch) bit allocation bit 31 30 29 28 27 26 25 24 symbol reserved [1] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 23 22 21 20 19 18 17 16 symbol reserved [1] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 46 of 163 nxp semiconductors isp1761 hi-speed usb otg controller [1] the reserved bits should always be written with the reset value. 8.3.5 hcdmacon?guration register the bit allocation of the hcdmacon?guration register is given in t ab le 40 . bit 15 14 13 12 11 10 9 8 symbol reserved [1] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 7 6 5 4 3 2 1 0 symbol reserved [1] reset_ hc reset_ all reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w table 39. sw reset - software reset register (address 030ch) bit description bit symbol description 31 to 2 - reserved; write logic 0 1 reset_hc reset host controller : reset only host controller-speci?c registers (only registers with address below 300h). 0 no reset 1 enable reset 0 reset_all reset all : reset all host controller and cpu interface registers. 0 no reset 1 enable reset table 40. hcdmacon?guration - host controller direct memory access con?guration register (address 0330h) bit allocation bit 31 30 29 28 27 26 25 24 symbol dma_counter[23:16] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 23 22 21 20 19 18 17 16 symbol dma_counter[15:8] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 15 14 13 12 11 10 9 8 symbol dma_counter[7:0] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 7 6 5 4 3 2 1 0 symbol reserved [1] burst_len[1:0] enable _dma dma_read_ write_sel reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 47 of 163 nxp semiconductors isp1761 hi-speed usb otg controller [1] the reserved bits should always be written with the reset value. 8.3.6 hcbufferstatus register the hcbufferstatus register is used to indicate the hc that a particular ptd buffer (that is, atl, int and iso) contains at least one ptd that must be scheduled. once software sets the buffer filled bit of a particular transfer in the hcbufferstatus register, the hc will start traversing through ptd headers that are not marked for skipping and are valid ptds. remark: software can set these bits during the initialization. t ab le 42 shows the bit allocation of the hcbufferstatus register. table 41. hcdmacon?guration - host controller direct memory access con?guration register (address 0330h) bit description bit symbol description 31 to 8 dma_counter[23:0] dma counter : the number of bytes to be transferred (read or write). remark: different number of bursts will be generated for the same transfer length programmed in 16-bit and 32-bit modes because dma_counter is in number of bytes. 7 to 4 - reserved 3 to 2 burst_len[1:0] dma burst length : 00 single dma burst 01 4-cycle dma burst 10 8-cycle dma burst 11 16-cycle dma burst 1 enable_dma enable dma : 0 terminate dma 1 enable dma 0 dma_read_write_ sel dma read or write select : indicates if the dma operation is a write or read to or from the isp1761. 0 dma write to the isp1761 internal ram is set 1 dma read from the isp1761 internal ram table 42. hcbufferstatus - host controller buffer status register (address 0334h) bit allocation bit 31 30 29 28 27 26 25 24 symbol reserved [1] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 23 22 21 20 19 18 17 16 symbol reserved [1] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 48 of 163 nxp semiconductors isp1761 hi-speed usb otg controller [1] the reserved bits should always be written with the reset value. 8.3.7 atl done timeout register the bit description of the atl done timeout register is given in t ab le 44 . 8.3.8 memory register the memory register contains the base memory read address and the respective bank. this register needs to be set only before a ?rst memory read cycle. once written, the address will be latched for the bank and will be incremented for every read of that bank until a new address for that bank is written to change the address pointer. bit 15 14 13 12 11 10 9 8 symbol reserved [1] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 7 6 5 4 3 2 1 0 symbol reserved [1] iso_buf_ fill int_buf_ fill atl_buf_ fill reset 00000 0 00 access r/w r/w r/w r/w r/w r/w r/w r/w table 43. hcbufferstatus - host controller buffer status register (address 0334h) bit description bit symbol description 31 to 3 - reserved 2 iso_buf_fill iso buffer filled : 1 indicates one of the iso ptds is ?lled, and the iso ptd area will be processed. 0 indicates there is no ptd in this area. therefore, processing of iso ptds will be completely skipped. 1 int_buf_fill int buffer filled : 1 indicates one of the int ptds is ?lled, and the int ptd area will be processed. 0 indicates there is no ptd in this area. therefore, processing of int ptds will be completely skipped. 0 atl_buf_fill atl buffer filled : 1 indicates one of the atl ptds is ?lled, and the atl ptd area will be processed. 0 indicates there is no ptd in this area. therefore, processing of atl ptds will be completely skipped. table 44. atl done timeout register (address 0338h) bit description bit symbol access value description 31 to 0 atl_done_time out[31:0] r/w 0000 0000h atl done timeout : this register determines the atl done time-out interrupt. this register de?nes the time-out in milliseconds after which the isp1761 asserts the int line, if enabled. it is applicable to atl done ptds only.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 49 of 163 nxp semiconductors isp1761 hi-speed usb otg controller the bit description of the register is given in t ab le 45 . [1] the reserved bits should always be written with the reset value. 8.3.9 edge interrupt count register t ab le 47 shows the bit allocation of the register. table 45. memory register (address 033ch) bit allocation bit 31 30 29 28 27 26 25 24 symbol reserved [1] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 23 22 21 20 19 18 17 16 symbol reserved [1] mem_bank_sel[1:0] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 15 14 13 12 11 10 9 8 symbol start_addr_mem_read[15:8] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 7 6 5 4 3 2 1 0 symbol start_addr_mem_read[7:0] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w table 46. memory register (address 033ch) bit description bit symbol description 31 to 18 - reserved 17 to 16 mem_bank_ sel[1:0] memory bank select : up to four memory banks can be selected. for details on internal memory read description, see section 7.3.1 . applicable to pio mode memory read or write data transfers only. 15 to 0 start_addr_ mem_read [15:0] start address for memory read cycles : the start address for a series of memory read cycles at incremental addresses in a contiguous space. applicable to pio mode memory read data transfers only. table 47. edge interrupt count register (address 0340h) bit allocation bit 31 30 29 28 27 26 25 24 symbol min_width[7:0] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 23 22 21 20 19 18 17 16 symbol reserved [1] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 50 of 163 nxp semiconductors isp1761 hi-speed usb otg controller [1] the reserved bits should always be written with the reset value. 8.3.10 dma start address register this register de?nes the start address select for the dma read and write operations. see t ab le 49 for bit allocation. [1] the reserved bits should always be written with the reset value. bit 15 14 13 12 11 10 9 8 symbol no_of_clk[15:8] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 7 6 5 4 3 2 1 0 symbol no_of_clk[7:0] reset 00001111 access r/w r/w r/w r/w r/w r/w r/w r/w table 48. edge interrupt count register (address 0340h) bit description bit symbol description 31 to 24 min_width[7:0] minimum width : indicates the minimum width between two edge interrupts in m sofs (1 m sof = 125 m s). this is not valid for level interrupts. a count of zero means that interrupts occur as and when an event occurs. 23 to 16 - reserved 15 to 0 no_of_clk[15:0] number of clocks : count in number of clocks that the edge interrupt must be kept asserted on the interface. 16 clocks of 60 mhz on por if this register has a value of 0000h. the default irq pulse width is approximately 500 ns. table 49. dma start address register (address 0344h) bit allocation bit 31 30 29 28 27 26 25 24 symbol reserved [1] reset 00000000 access wwwwwwww bit 23 22 21 20 19 18 17 16 symbol reserved [1] reset 00000000 access wwwwwwww bit 15 14 13 12 11 10 9 8 symbol start_addr_dma[15:8] reset 00000000 access wwwwwwww bit 7 6 5 4 3 2 1 0 symbol start_addr_dma[7:0] reset 00000000 access wwwwwwww
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 51 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 8.3.11 power down control register this register is used to turn off power to internal blocks of the isp1761 to obtain maximum power savings. t ab le 51 shows the bit allocation of the register. [1] the reserved bits should always be written with the reset value. table 50. dma start address register (address 0344h) bit description bit symbol description 31 to 16 - reserved 15 to 0 start_addr _dma[15:0] start address for dma : the start address for dma read or write cycles. table 51. power down control register (address 0354h) bit allocation bit 31 30 29 28 27 26 25 24 symbol clk_off_counter[15:8] reset 00000011 access r/w r/w r/w r/w r/w r/w r/w r/w bit 23 22 21 20 19 18 17 16 symbol clk_off_counter[7:0] reset 11101000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 15 14 13 12 11 10 9 8 symbol reserved [1] port3_ pd port2_ pd vbatdet_ pwr reserved [1] reset 00011011 access r/w r/w r/w r/w r/w r/w r/w r/w bit 7 6 5 4 3 2 1 0 symbol reserved [1] biasen vreg_on oc3_pwr oc2_pwr oc1_pwr hc_clk_ en reset 10100000 access r/w r/w r/w r/w r/w r/w r/w r/w
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 52 of 163 nxp semiconductors isp1761 hi-speed usb otg controller table 52. power down control register (address 0354h) bit description bit [1] symbol description 31 to 16 clk_off_ counter [15:0] clock off counter : determines the wake-up status duration after any wake-up event before the isp1761 goes back into suspend mode. this time-out is applicable only if, during the given interval, the host controller is not programmed back to normal functionality. 03e8h the default value. it determines the default wake-up interval of 10 ms. a value of zero implies that the host controller never wakes up on any of the events. this may be useful when using the isp1761 as a peripheral to save power by permanently programming the host controller in suspend. ffffh the maximum value. it determines a maximum wake-up time of 500 ms. the setting of this register is based on the 100 khz 40 % lazyclock frequency. it is a multiple of 10 m s period. remark: in 16-bit mode, the default value is 17e8h. a write operation to these bits with any value ?xes the clock off counter at 1400h. this value is equivalent to a ?xed wake-up time of 50 ms. 15 to 13 - reserved 12 port3_pd port 3 pull-down : controls port 3 pull-down resistors. 0 port 3 internal pull-down resistors are not connected. 1 port 3 internal pull-down resistors are connected. 11 port2_pd port 2 pull-down : controls port 2 pull-down resistors. 0 port 2 internal pull-down resistors are not connected. 1 port 2 internal pull-down resistors are connected. 10 vbatdet_ pwr v bat detector powered : controls the power to the v bat detector. 0 v bat detector is powered or enabled in suspend. 1 v bat detector is not powered or disabled in suspend. 9 to 6 - reserved; write reset value 5 biasen bias circuits powered : controls the power to internal bias circuits. 0 internal bias circuits are not powered in suspend. 1 internal bias circuits are powered in suspend. 4 vreg_on v reg powered : enables or disables the internal 3.3 v and 1.8 v regulators when the isp1761 is in suspend. 0 internal regulators are normally powered in suspend. 1 internal regulators switch to low power mode (in suspend mode). 3 oc3_pwr oc3_n powered : controls the powering of the overcurrent detection circuitry for port 3. 0 overcurrent detection is powered on or enabled during suspend. 1 overcurrent detection is powered off or disabled during suspend. this may be useful when connecting a faulty device while the system is in standby.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 53 of 163 nxp semiconductors isp1761 hi-speed usb otg controller [1] for a 32-bit operation, the default wake-up counter value is 10 m s. for a 16-bit operation, the wake-up counter value is 50 ms. in the 16-bit operation, read and write back the same value on initialization. 8.4 interrupt registers 8.4.1 hcinterrupt register the bits of this register indicate the interrupt source, de?ning the events that determined the int generation. clearing the bits that were set because of the events listed is done by writing back logic 1 to the respective position. all bits must be reset before enabling new interrupt events. these bits will be set, regardless of the setting of bit global_intr_en in the hw mode control register. t ab le 53 shows the bit allocation of the hcinterrupt register. 2 oc2_pwr oc2_n powered : controls the powering of the overcurrent detection circuitry for port 2. 0 overcurrent detection is powered on or enabled during suspend. 1 overcurrent detection is powered off or disabled during suspend. this may be useful when connecting a faulty device while the system is in standby. 1 oc1_pwr oc1_n powered : controls the powering of the overcurrent detection circuitry for port 1. 0 overcurrent detection is powered on or enabled during suspend. 1 overcurrent detection is powered off or disabled during suspend. this may be useful when connecting a faulty device while the system is in standby. 0 hc_clk_ en host controller clock enabled : controls internal clocks during suspend. 0 clocks are disabled during suspend. this is the default value. only the lazyclock of 100 khz 40 % will be left running in suspend if this bit is logic 0. if clocks are stopped during suspend, clkready irq will be generated when all clocks are running stable. 1 all clocks are enabled even in suspend. table 52. power down control register (address 0354h) bit description continued bit [1] symbol description table 53. hcinterrupt - host controller interrupt register (address 0310h) bit allocation bit 31 30 29 28 27 26 25 24 symbol reserved [1] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 23 22 21 20 19 18 17 16 symbol reserved [1] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 15 14 13 12 11 10 9 8 symbol reserved [1] otg_irq iso_irq atl_irq reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 54 of 163 nxp semiconductors isp1761 hi-speed usb otg controller [1] the reserved bits should always be written with the reset value. bit 7 6 5 4 3 2 1 0 symbol int_irq clk ready hcsusp reserved [1] dmaeot int reserved [1] sofitlint reserved [1] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w table 54. hcinterrupt - host controller interrupt register (address 0310h) bit description bit symbol description 31 to 11 - reserved; write reset value 10 otg_irq otg_irq : indicates that an otg event occurred. the irq line will be asserted if the respective enable bit in the hcinterruptenable register is set. 0 no otg event 1 otg event occurred for details, see section 7.4 . 9 iso_irq iso irq : indicates that an iso ptd was completed, or the ptds corresponding to the bits set in the iso irq mask and or iso irq mask or register bits combination were completed. the irq line will be asserted if the respective enable bit in the hcinterruptenable register is set. 0 no iso ptd event occurred 1 iso ptd event occurred for details, see section 7.4 . 8 atl_irq atl irq : indicates that an atl ptd was completed, or the ptds corresponding to the bits set in the atl irq mask and or atl irq mask or register bits combination were completed. the irq line will be asserted if the respective enable bit in the hcinterruptenable register is set. 0 no atl ptd event occurred 1 atl ptd event occurred for details, see section 7.4 . 7 int_irq int irq : indicates that an int ptd was completed, or the ptds corresponding to the bits set in the int irq mask and or int irq mask or register bits combination were completed. the irq line will be asserted if the respective enable bit in the hcinterruptenable register is set. 0 no int ptd event occurred 1 int ptd event occurred for details, see section 7.4 . 6 clkready clock ready : indicates that internal clock signals are running stable. the irq line will be asserted if the respective enable bit in the hcinterruptenable register is set. 0 no clkready event has occurred 1 clkready event occurred
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 55 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 8.4.2 hcinterruptenable register this register allows enabling or disabling of the irq generation because of various events as described in t ab le 55 . 5 hcsusp host controller suspend : indicates that the host controller has entered suspend mode. the irq line will be asserted if the respective enable bit in the hcinterruptenable register is set. 0 the host controller did not enter suspend mode. 1 the host controller entered suspend mode. if the interrupt service routine (isr) accesses the isp1761, it will wake up for the time speci?ed in bits 31 to 16 of the power down control register. 4 - reserved; write reset value 3 dmaeotint dma eot interrupt : indicates the dma transfer completion. the irq line will be asserted if the respective enable bit in the hcinterruptenable register is set. 0 no dma transfer is completed 1 dma transfer is completed 2 - reserved; write reset value; value is zero just after reset and changes to one after a short while 1 sofitlint sot itl interrupt : the irq line will be asserted if the respective enable bit in the hcinterruptenable register is set. 0 no sof event has occurred 1 an sof event has occurred 0 - reserved; write reset value; value is zero just after reset and changes to one after a short while table 54. hcinterrupt - host controller interrupt register (address 0310h) bit description continued bit symbol description table 55. hcinterruptenable - host controller interrupt enable register (address 0314h) bit allocation bit 31 30 29 28 27 26 25 24 symbol reserved [1] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 23 22 21 20 19 18 17 16 symbol reserved [1] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 15 14 13 12 11 10 9 8 symbol reserved [1] otg_irq_ e iso_irq_e atl_irq _e reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 56 of 163 nxp semiconductors isp1761 hi-speed usb otg controller [1] the reserved bits should always be written with the reset value. bit 7 6 5 4 3 2 1 0 symbol int_irq_e clkready _e hcsusp_ e reserved [1] dmaeot int _e reserved [1] sofitlint _e reserved [1] reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w table 56. hcinterruptenable - host controller interrupt enable register (address 0314h) bit description bit symbol description 31 to 11 - reserved; write reset value 10 otg_irq_e otg_irq enable : controls the irq assertion because of events present in the otg interrupt latch register. 0 no irq will be asserted 1 irq will be asserted for details, see section 7.4 . 9 iso_irq_e iso irq enable : controls the irq assertion when one or more iso ptds matching the iso irq mask and or iso irq mask or register bits combination are completed. 0 no irq will be asserted when iso ptds are completed 1 irq will be asserted for details, see section 7.4 . 8 atl_irq_e atl irq enable : controls the irq assertion when one or more atl ptds matching the atl irq mask and or atl irq mask or register bits combination are completed. 0 no irq will be asserted when atl ptds are completed 1 irq will be asserted for details, see section 7.4 . 7 int_irq_e int irq enable : controls the irq assertion when one or more int ptds matching the int irq mask and or int irq mask or register bits combination are completed. 0 no irq will be asserted when int ptds are completed 1 irq will be asserted for details, see section 7.4 . 6 clkready_e clock ready enable : enables the irq assertion when internal clock signals are running stable. useful after wake-up. 0 no irq will be generated after a clkready_e event 1 irq will be generated after a clkready_e event 5 hcsusp_e host controller suspend enable : enables the irq generation when the host controller enters suspend mode. 0 no irq will be generated when the host controller enters suspend mode 1 irq will be generated when the host controller enters suspend mode
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 57 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 8.4.3 iso irq mask or register each bit of this register corresponds to one of the 32 iso ptds de?ned, and is a hardware irq mask for each ptd done map. see t ab le 57 for bit description. for details, see section 7.4 . 8.4.4 int irq mask or register each bit of this register (see t ab le 58 ) corresponds to one of the 32 int ptds de?ned, and is a hardware irq mask for each ptd done map. for details, see section 7.4 . 8.4.5 atl irq mask or register each bit of this register corresponds to one of the 32 atl ptds de?ned, and is a hardware irq mask for each ptd done map. see t ab le 59 for bit description. for details, see section 7.4 . 4 - reserved; write reset value 3 dmaeotint_e dma eot interrupt enable : controls assertion of irq on the dma transfer completion. 0 no irq will be generated when a dma transfer is completed 1 irq will be asserted when a dma transfer is completed 2 - reserved; write reset value 1 sofitlint_e sot itl interrupt enable : controls the irq generation at every sof occurrence. 0 no irq will be generated on sof occurrence 1 irq will be asserted at every sof 0 - reserved; write reset value table 56. hcinterruptenable - host controller interrupt enable register (address 0314h) bit description continued bit symbol description table 57. iso irq mask or register (address 0318h) bit description bit symbol access value description 31 to 0 iso_irq_mask_ or[31:0] r/w 0000 0000h iso irq mask or : represents a direct map for iso ptds 31 to 0. 0 no or condition de?ned between iso ptds. 1 the bits corresponding to certain ptds are set to logic 1 to de?ne a certain or condition. table 58. int irq mask or register (address 031ch) bit description bit symbol access value description 31 to 0 int_irq_mask_ or[31:0] r/w 0000 0000h int irq mask or : represents a direct map for int ptds 31 to 0. 0 no or condition de?ned between int ptds 31 to 0. 1 the bits corresponding to certain ptds are set to logic 1 to de?ne a certain or condition.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 58 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 8.4.6 iso irq mask and register each bit of this register corresponds to one of the 32 iso ptds de?ned, and is a hardware irq mask for each ptd done map. for details, see section 7.4 . t ab le 60 provides the bit description of the register. 8.4.7 int irq mask and register each bit of this register (see t ab le 61 ) corresponds to one of the 32 int ptds de?ned, and is a hardware irq mask for each ptd done map. for details, see section 7.4 . 8.4.8 atl irq mask and register each bit of this register corresponds to one of the 32 atl ptds de?ned, and is a hardware irq mask for each ptd done map. for details, see section 7.4 . t ab le 62 shows the bit description of the register. 8.5 philips transfer descriptor (ptd) the standard ehci data structures as described in ref . 2 enhanced host controller interf ace speci? cation f or univ ersal ser ial bus re v . 1.0 are optimized for the bus master operation that is managed by the hardware state machine. table 59. atl irq mask or register (address 0320h) bit description bit symbol access value description 31 to 0 atl_irq_mask_ or[31:0] r/w 0000 0000h atl irq mask or : represents a direct map for atl ptds 31 to 0. 0 no or condition de?ned between atl ptds. 1 the bits corresponding to certain ptds are set to logic 1 to de?ne a certain or condition. table 60. iso irq mask and register (address 0324h) bit description bit symbol access value description 31 to 0 iso_irq_mask_ and[31:0] r/w 0000 0000h iso irq mask and : represents a direct map for iso ptds 31 to 0. 0 no and condition de?ned between iso ptds. 1 the bits corresponding to certain ptds are set to logic 1 to de?ne a certain and condition between the 32 int ptds. table 61. int irq mask and register (address 0328h) bit description bit symbol access value description 31 to 0 int_irq_mask_ and[31:0] r/w 0000 0000h int irq mask and : represents a direct map for int ptds 31 to 0. 0 no or condition de?ned between int ptds. 1 the bits corresponding to certain ptds are set to logic 1 to de?ne a certain and condition between the 32 int ptds. table 62. atl irq mask and register (address 032ch) bit description bit symbol access value description 31 to 0 atl_irq_ mask_and [31:0] r/w 0000 0000h atl irq mask and : represents a direct map for atl ptds 31 to 0. 0 no or condition de?ned between atl ptds. 1 the bits corresponding to certain ptds are set to logic 1 to de?ne a certain and condition between the 32 atl ptds.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 59 of 163 nxp semiconductors isp1761 hi-speed usb otg controller the ptd structures of the isp1761 are translations of ehci data structures that are optimized for the isp1761. it, however, still follows the basic ehci architecture. this optimized form of ehci data structures is necessary because the isp1761 is a slave host controller and has no bus master capability. ehci manages schedules in two lists: periodic and asynchronous. data structures are designed to provide the maximum ?exibility required by usb, minimize memory traf?c, and reduce hardware and software complexity. the isp1761 controller executes transactions for devices by using a simple shared-memory schedule. this schedule consists of data structures organized into three lists. qiso isochronous transfer qintl interrupt transfer qatl asynchronous transfer; for the control and bulk transfers the system software maintains two lists for the host controller: periodic and asynchronous. the isp1761 has a maximum of 32 iso, 32 intl and 32 atl ptds. these ptds are used as channels to transfer data from the shared memory to the usb bus. these channels are allocated and de-allocated on receiving the transfer from the core usb driver. multiple transfers are scheduled to the shared memory for various endpoints by traversing the next link pointer provided by endpoint data structures, until it reaches the end of the endpoint list. there are three endpoint lists: one for iso endpoints, and the other for intl and atl endpoints. if the schedule is enabled, the host controller executes the iso schedule, followed by the intl schedule, and then the atl schedule. these lists are traversed and scheduled by the software according to the ehci traversal rule. the host controller executes scheduled iso, intl and atl ptds. the completion of a transfer is indicated to the software by the interrupt that can be grouped under various ptds by using the and or or registers that are available for each schedule type: iso, intl and atl. these registers are simple logic registers to decide the completion status of group and individual ptds. when the logical conditions of the done bit is true in the shared memory, it means that ptd has completed. there are four types of interrupts in the isp1761: iso, intl, atl and sof. the latency can be programmed in multiples of m sof (125 m s). the nextptd pointer is a feature that allows the isp1761 to jump unused and skip ptds. this will improve the ptd transversal latency time. the nextptd pointer is not meant for same or single endpoint. the nextptd works only in forward direction. the nextptd traversal rules de?ned by the isp1761 hardware are: 1. start the ptd memory vertical traversal, considering the skip and lastptd information, as follows. 2. if the current ptd is active and not done, perform the transaction. 3. follow the nextptd pointer as speci?ed in bits 4 to 0 of dw4. 4. if combined with lastptd, the lastptd setting must be at a higher address than the nextptd speci?ed. so both are set in a logical manner.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 60 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 5. if combined with skip, the skip must not be set (logically) on the same position corresponding to nextptd, pointed by the nextptd pointer. 6. if ptd is set for skip, it will be neglected and the next vertical ptd will be considered. 7. if the skipped ptd already has a setting including a nextptd pointer that will not be taken into consideration, the behavior will be just as described in the preceding step. fig 13. nextptd traversal rule ptd skipped? start ptd schedule no yes check for valid and active bit set? follow next ptd pointed by nextptd pointer no yes start ptd execution is ptd pointer null? go to nextptd vertical yes no 004aaa883
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 61 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 8.5.1 high-speed bulk in and out t ab le 63 shows the bit allocation of the high-speed bulk in and out, asynchronous transfer descriptor. [1] reserved. [2] endpt[0]. table 63. high-speed bulk in and out: bit allocation bit 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 dw7 reserved dw5 reserved dw3 ahbx [1] p dt cerr [1:0] nakcnt[3:0] reserved nrbytestransferred[14:0] (32 kb - 1 b for high-speed) dw1 reserved s eptype [1:0] to k e n [1:0] deviceaddress[6:0] endpt[3:1] bit 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 dw6 reserved dw4 reserved j nextptdpointer[4:0] dw2 reserved rl[3:0] [1] datastartaddress[15:0] reserved dw0 [2] mult [1:0] maxpacketlength[10:0] nrbytestotransfer[14:0] [1] v
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 62 of 163 nxp semiconductors isp1761 hi-speed usb otg controller table 64. high-speed bulk in and out: bit description bit symbol access value description dw7 63 to 32 reserved - - - dw6 31 to 0 reserved - - - dw5 63 to 32 reserved - - - dw4 31 to 6 reserved - 0 not applicable for asynchronous td. 5j sw writes - jump : 0 to increment the ptd pointer. 1 to enable the next ptd branching. 4 to 0 nextptdpointer [4:0] sw writes - next ptd counter : next ptd branching assigned by the ptd pointer. dw3 63 a sw sets hw resets - active : write the same value as that in v. 62 h hw writes - halt : this bit corresponds to the halt bit of the status ?eld of td. 61 b hw writes - babble : this bit corresponds to the babble detected bit in the status ?eld of itd, sitd or td. 1 when babbling is detected, a and v are set to 0. 60 x hw writes - error : this bit corresponds to the transaction error bit in the status ?eld of itd, sitd or td (exec_trans, the signal name is xacterr). 0 no pid error. 1 if there are pid errors, this bit is set active. the a and v bits are also set to inactive. this transaction is retried three times. sw writes - 0 before scheduling. 59 reserved - - - 58 p sw writes hw updates - ping : for high-speed transactions, this bit corresponds to the ping state bit in the status ?eld of a td. 0 ping is not set. 1 ping is set. for the ?rst time, software sets the ping bit to 0. for the successive asynchronous td, software sets the bit in asynchronous td based on the state of the bit for the previous asynchronous td of the same transfer, that is: ? the current asynchronous td is completed with the ping bit set. ? the next asynchronous td will have its ping bit set by the software. 57 dt hw updates sw writes - data toggle : this bit is ?lled by software to start a ptd. if nrbytestotransfer[14:0] is not complete, software needs to read this value and then write back the same value to continue.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 63 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 56 to 55 cerr[1:0] hw writes sw writes - error counter : this ?eld corresponds to the cerr[1:0] ?eld in td. the default value of this ?eld is zero for isochronous transactions. 00 the transaction will not retry. 11 the transaction will retry three times. hardware will decrement these values. 54 to 51 nakcnt[3:0] hw writes sw writes - nak counter : this ?eld corresponds to the nakcnt ?eld in td. software writes for the initial ptd launch. the v bit is reset if nakcnt decrements to zero and rl is a non-zero value. it reloads from rl if transaction is ack-ed. 50 to 47 reserved - - - 46 to 32 nrbytes transferred [14:0] hw writes sw writes 0000 - number of bytes transferred : this ?eld indicates the number of bytes sent or received for this transaction. if mult[1:0] is greater than one, it is possible to store intermediate results in this ?eld. dw2 31 to 29 reserved - - set to 0 for asynchronous td. 28 to 25 rl[3:0] sw writes - reload : if rl is set to 0h, hardware ignores the nakcnt value. rl and nakcnt are set to the same value before a transaction. 24 reserved - - always 0 for asynchronous td. 23 to 8 datastart address[15:0] sw writes - data start address : this is the start address for data that will be sent or received on or from the usb bus. this is the internal memory address and not the direct cpu address. ram address = (cpu address - 400h) / 8 7 to 0 reserved - - - dw1 63 to 47 reserved - - always 0 for asynchronous td. 46 s sw writes - this bit indicates whether a split transaction has to be executed: 0 high-speed transaction 1 split transaction 45 to 44 eptype[1:0] sw writes - transaction type : 00 control 10 bulk 43 to 42 token[1:0] sw writes - token : identi?es the token packet identi?er (pid) for this transaction: 00 out 01 in 10 setup 11 ping (written by hardware only). 41 to 35 deviceaddress [6:0] sw writes - device address : this is the usb address of the function containing the endpoint that is referred to by this buffer. 34 to 32 endpt[3:1] sw writes - endpoint : this is the usb address of the endpoint within the function. dw0 31 endpt[0] sw writes - endpoint : this is the usb address of the endpoint within the function. table 64. high-speed bulk in and out: bit description continued bit symbol access value description
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 64 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 30 to 29 mult[1:0] sw writes - multiplier : this ?eld is a multiplier used by the host controller as the number of successive packets the host controller may submit to the endpoint in the current execution. set this ?eld to 01b. you can also set it to 11b and 10b depending on your application. 00b is unde?ned. 28 to 18 maxpacket length[10:0] sw writes - maximum packet length : this ?eld indicates the maximum number of bytes that can be sent to or received from an endpoint in a single data packet. the maximum packet size for a bulk transfer is 512 bytes. the maximum packet size for the isochronous transfer is also variable at any whole number. 17 to 3 nrbytesto transfer[14:0] sw writes - number of bytes to transfer : this ?eld indicates the number of bytes that can be transferred by this data structure. it is used to indicate the depth of the data ?eld (32 kb - 1 b). 2 to 1 reserved - - - 0v sw sets hw resets - valid : 0 this bit is deactivated when the entire ptd is executed, or when a fatal error is encountered. 1 software updates to one when there is payload to be sent or received. the current ptd is active. table 64. high-speed bulk in and out: bit description continued bit symbol access value description
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 65 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 8.5.2 high-speed isochronous in and out t ab le 65 shows the bit allocation of the high-speed isochronous in and out, isochronous transfer descriptor (itd). [1] reserved. [2] endpt[0]. table 65. high-speed isochronous in and out: bit allocation bit 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 dw7 isoin_7[11:0] isoin_6[11:0] isoin_5[11:4] dw5 isoin_2[7:0] isoin_1[11:0] isoin_0[11:0] dw3 a h b reserved nrbytestransferred[14:0] (32 kb - 1 b for high-speed) dw1 reserved s ep type [1:0] to k e n [1:0] deviceaddress[6:0] endpt[3:1] bit 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 dw6 isoin_5[3:0] isoin_4[11:0] isoin_3[11:0] isoin_2[11:8] dw4 status7[2:0] status6[2:0] status5[2:0] status4[2:0] status3[2:0] status2[2:0] status1[2:0] status0[2:0] m sa[7:0] dw2 reserved datastartaddress[15:0] m frame[7:0] dw0 [2] mult [1:0] maxpacketlength[10:0] nrbytestotransfer[14:0] [1] v
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 66 of 163 nxp semiconductors isp1761 hi-speed usb otg controller table 66. high-speed isochronous in and out: bit description bit symbol access value description dw7 63 to 52 isoin_7[11:0] hw writes - bytes received during m sof7, if m sa[7] is set to 1 and frame number is correct. 51 to 40 isoin_6[11:0] hw writes - bytes received during m sof6, if m sa[6] is set to 1 and frame number is correct. 39 to 32 isoin_5[11:4] hw writes - bytes received during m sof5 (bits 11 to 4), if m sa[5] is set to 1 and frame number is correct. dw6 31 to 28 isoin_5[3:0] hw writes - bytes received during m sof5 (bits 3 to 0), if m sa[5] is set to 1 and frame number is correct. 27 to 16 isoin_4[11:0] hw writes - bytes received during m sof4, if m sa[4] is set to 1 and frame number is correct. 15 to 4 isoin_3[11:0] hw writes - bytes received during m sof3, if m sa[3] is set to 1 and frame number is correct. 3 to 0 isoin_2[11:8] hw writes - bytes received during m sof2 (bits 11 to 8), if m sa[2] is set to 1 and frame number is correct. dw5 63 to 56 isoin_2[7:0] hw writes - bytes received during m sof2 (bits 7 to 0), if m sa[2] is set to 1 and frame number is correct. 55 to 44 isoin_1[11:0] hw writes - bytes received during m sof1, if m sa[1] is set to 1 and frame number is correct. 43 to 32 isoin_0[11:0] hw writes - bytes received during m sof0, if m sa[0] is set to 1 and frame number is correct. dw4 31 to 29 status7[2:0] hw writes - iso in or out status at m sof7 28 to 26 status6[2:0] hw writes - iso in or out status at m sof6 25 to 23 status5[2:0] hw writes - iso in or out status at m sof5 22 to 20 status4[2:0] hw writes - iso in or out status at m sof4 19 to 17 status3[2:0] hw writes - iso in or out status at m sof3 16 to 14 status2[2:0] hw writes - iso in or out status at m sof2 13 to 11 status1[2:0] hw writes - iso in or out status at m sof1 10 to 8 status0[2:0] hw writes - status of the payload on the usb bus for this m sof after iso has been delivered. bit 0 transaction error (in and out) bit 1 babble (in token only) bit 2 underrun (out token only) 7to0 m sa[7:0] sw writes (0 ? 1) hw writes (1 ? 0) after processing - m sof active : when the frame number of bits dw1[7:3] match the frame number of the usb bus, these bits are checked for 1 before they are sent for m sof. for example: if m sa[7:0] = 1, 1, 1, 1, 1, 1, 1, 1: send iso every m sof of the entire millisecond. if m sa[7:0] = 0, 1, 0, 1, 0, 1, 0, 1: send iso only on m sof0, m sof2, m sof4 and m sof6.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 67 of 163 nxp semiconductors isp1761 hi-speed usb otg controller dw3 63 a sw sets - active : this bit is the same as the valid bit. 62 h hw writes - halt : only one bit for the entire millisecond. when this bit is set, the valid bit is reset. the device decides to stall an endpoint. 61 b hw writes - babble : not applicable here. 60 to 47 reserved - 0 set to 0 for isochronous. 46 to 32 nrbytes transferred [14:0] hw writes - number of bytes transferred : this ?eld indicates the number of bytes sent or received for this transaction. if mult[1:0] is greater than one, it is possible to store intermediate results in this ?eld. nrbytestransferred[14:0] is 32 kb - 1 b per ptd. dw2 31 to 24 reserved - 0 set to 0 for isochronous. 23 to 8 datastart address[15:0] sw writes - data start address : this is the start address for data that will be sent or received on or from the usb bus. this is the internal memory address and not the direct cpu address. ram address = (cpu address - 400h) / 8 7to0 m frame[7:0] sw writes - bits 2 to 0 dont care bits 7 to 3 frame number that this ptd will be sent for iso out or in dw1 63 to 47 reserved - - - 46 s sw writes - this bit indicates whether a split transaction has to be executed. 0 high-speed transaction 1 split transaction 45 to 44 eptype[1:0] sw writes - endpoint type : 01 isochronous 43 to 42 token[1:0] sw writes - token : this ?eld indicates the token pid for this transaction: 00 out 01 in 41 to 35 device address[6:0] sw writes - device address : this is the usb address of the function containing the endpoint that is referred to by this buffer. 34 to 32 endpt[3:1] sw writes - endpoint : this is the usb address of the endpoint within the function. dw0 31 endpt[0] sw writes - endpoint : this is the usb address of the endpoint within the function. 30 to 29 mult[1:0] sw writes - this ?eld is a multiplier counter used by the host controller as the number of successive packets the host controller may submit to the endpoint in the current execution. for details, refer to appendix d of ref . 2 enhanced host controller interf ace speci? cation f or univ ersal ser ial bus re v . 1.0 . table 66. high-speed isochronous in and out: bit description continued bit symbol access value description
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 68 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 28 to 18 maxpacket length[10:0] sw writes - maximum packet length : this ?eld indicates the maximum number of bytes that can be sent to or received from the endpoint in a single data packet. the maximum packet size for an isochronous transfer is 1024 bytes. the maximum packet size for the isochronous transfer is also variable at any whole number. 17 to 3 nrbytesto transfer[14:0] sw writes - number of bytes transferred : this ?eld indicates the number of bytes that can be transferred by this data structure. it is used to indicate the depth of the data ?eld (32 kb - 1 b). 2 to 1 reserved - - - 0v hw resets sw sets - 0 this bit is deactivated when the entire ptd is executed, or when a fatal error is encountered. 1 software updates to one when there is payload to be sent or received. the current ptd is active. table 66. high-speed isochronous in and out: bit description continued bit symbol access value description
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 69 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 8.5.3 high-speed interrupt in and out t ab le 67 shows the bit allocation of the high-speed interrupt in and out, periodic transfer descriptor (ptd). [1] reserved. [2] endpt[0]. table 67. high-speed interrupt in and out: bit allocation bit 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 dw7 int_in_7[11:0] int_in_6[11:0] int_in_5[11:4] dw5 int_in_2[7:0] int_in_1[11:0] int_in_0[11:0] dw3 a h reserved dt cerr [1:0] reserved nrbytestransferred[14:0] (32 kb - 1 b for high-speed) dw1 reserved s ep type [1:0] to k e n [1:0] deviceaddress[6:0] endpt[3:1] bit 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 dw6 int_in_5[3:0] int_in_4[11:0] int_in_3[11:0] int_in_2[11:8] dw4 status7[2:0] status6[2:0] status5[2:0] status4[2:0] status3[2:0] status2[2:0] status1[2:0] status0[2:0] m sa[7:0] dw2 reserved datastartaddress[15:0] m frame[7:0] dw0 [2] mult [1:0] maxpacketlength[10:0] nrbytestotransfer[14:0] [1] v
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 70 of 163 nxp semiconductors isp1761 hi-speed usb otg controller table 68. high-speed interrupt in and out: bit description bit symbol access value description dw7 63 to 52 int_in_7[11:0] hw writes - bytes received during m sof7, if m sa[7] is set to 1 and frame number is correct. 51 to 40 int_in_6[11:0] hw writes - bytes received during m sof6, if m sa[6] is set to 1 and frame number is correct. 39 to 32 int_in_5[11:4] hw writes - bytes received during m sof5 (bits 11 to 4), if m sa[5] is set to 1 and frame number is correct. dw6 31 to 28 int_in_5[3:0] hw writes - bytes received during m sof5 (bits 3 to 0), if m sa[5] is set to 1 and frame number is correct. 27 to 16 int_in_4[11:0] hw writes - bytes received during m sof4, if m sa[4] is set to 1 and frame number is correct. 15 to 4 int_in_3[11:0] hw writes - bytes received during m sof3, if m sa[3] is set to 1 and frame number is correct. 3 to 0 int_in_2[11:8] hw writes - bytes received during m sof2 (bits 11 to 8), if m sa[2] is set to 1 and frame number is correct. dw5 63 to 56 int_in_2[7:0] hw writes - bytes received during m sof2 (bits 7 to 0), if m sa[2] is set to 1 and frame number is correct. 55 to 44 int_in_1[11:0] hw writes - bytes received during m sof1, if m sa[1] is set to 1 and frame number is correct. 43 to 32 int_in_0[11:0] hw writes - bytes received during m sof0, if m sa[0] is set to 1 and frame number is correct. dw4 31 to 29 status7[2:0] hw writes - int in or out status of m sof7 28 to 26 status6[2:0] hw writes - int in or out status of m sof6 25 to 23 status5[2:0] hw writes - int in or out status of m sof5 22 to 20 status4[2:0] hw writes - int in or out status of m sof4 19 to 17 status3[2:0] hw writes - int in or out status of m sof3 16 to 14 status2[2:0] hw writes - int in or out status of m sof2 13 to 11 status1[2:0] hw writes - int in or out status of m sof1 10 to 8 status0[2:0] hw writes - status of the payload on the usb bus for this m sof after int has been delivered. bit 0 transaction error (in and out) bit 1 babble (in token only) bit 2 underrun (out token only) 7to0 m sa[7:0] sw writes (0 ? 1) hw writes (1 ? 0) after processing - when the frame number of bits dw2[7:3] match the frame number of the usb bus, these bits are checked for 1 before they are sent for m sof. for example: when m sa[7:0] = 1, 1, 1, 1, 1, 1, 1, 1: send int for every m sof of the entire millisecond. when m sa[7:0] = 0, 1, 0, 1, 0, 1, 0, 1: send int for m sof0, m sof2, m sof4 and m sof6. when m sa[7:0] = 1, 0, 0, 0, 1, 0, 0, 0 = send int for every fourth m sof.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 71 of 163 nxp semiconductors isp1761 hi-speed usb otg controller dw3 63 a hw writes sw writes - active : write the same value as that in v. 62 h hw writes - halt : transaction is halted. 61 to 58 reserved - - - 57 dt hw writes sw writes - data toggle : set the data toggle bit to start the ptd. software writes the current transaction toggle value. hardware writes the next transaction toggle value. 56 to 55 cerr[1:0] hw writes sw writes - error counter : this ?eld corresponds to the cerr[1:0] ?eld in td. the default value of this ?eld is zero for isochronous transactions. 54 to 47 reserved - - - 46 to 32 nrbytes transferred [14:0] hw writes - number of bytes transferred : this ?eld indicates the number of bytes sent or received for this transaction. if mult[1:0] is greater than one, it is possible to store intermediate results in this ?eld. dw2 31 to 24 reserved - - - 23 to 8 datastart address[15:0] sw writes - data start address : this is the start address for data that will be sent or received on or from the usb bus. this is the internal memory address and not the direct cpu address. ram address = (cpu address - 400h) / 8 7to0 m frame[7:0] sw writes - bits 7 to 3 represent the polling rate in milliseconds. the int polling rate is de?ned as 2 (b - 1) m sof, where b is 1 to 9. when b is 1, 2, 3 or 4, use m sa to de?ne polling because the rate is equal to or less than 1 ms. bits 7 to 3 are set to 0. polling checks m sa bits for m sof rates. see t ab le 69 . dw1 63 to 47 reserved - - - 46 s sw writes - this bit indicates if a split transaction has to be executed: 0 high-speed transaction 1 split transaction 45 to 44 eptype[1:0] sw writes - endpoint type : 11 interrupt 43 to 42 token[1:0] sw writes - token : this ?eld indicates the token pid for this transaction: 00 out 01 in 41 to 35 deviceaddress [6:0] sw writes - device address : this is the usb address of the function containing the endpoint that is referred to by the buffer. 34 to 32 endpt[3:1] sw writes - endpoint : this is the usb address of the endpoint within the function. dw0 31 endpt[0] sw writes - endpoint : this is the usb address of the endpoint within the function. table 68. high-speed interrupt in and out: bit description continued bit symbol access value description
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 72 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 30 to 29 mult[1:0] sw writes - multiplier : this ?eld is a multiplier counter used by the host controller as the number of successive packets the host controller may submit to the endpoint in the current execution. set this ?eld to 01b. you can also set it to 11b and 10b depending on your application. 00b is unde?ned. 28 to 18 maxpacket length[10:0] sw writes - maximum packet length : this ?eld indicates the maximum number of bytes that can be sent to or received from the endpoint in a single data packet. 17 to 3 nrbytesto transfer[14:0] sw writes - number of bytes to transfer : this ?eld indicates the number of bytes that can be transferred by this data structure. it is used to indicate the depth of the data ?eld (32 kb - 1 b). 2 to 1 reserved - - - 0v sw sets hw resets - valid : 0 this bit is deactivated when the entire ptd is executed, or when a fatal error is encountered. 1 software updates to one when there is payload to be sent or received. the current ptd is active. table 68. high-speed interrupt in and out: bit description continued bit symbol access value description table 69. microframe description b rate m frame[7:3] m sa[7:0] 11 m sof 0 0000 1111 1111 22 m sof 0 0000 1010 1010 or 0101 0101 34 m sof 0 0000 any 2 bits set 4 1 ms 0 0000 any 1 bit set 5 2 ms 0 0001 any 1 bit set 6 4 ms 0 0010 to 0 0011 any 1 bit set 7 8 ms 0 0100 to 0 0111 any 1 bit set 8 16 ms 0 1000 to 0 1111 any 1 bit set 9 32 ms 1 0000 to 1 1111 any 1 bit set
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 73 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 8.5.4 start and complete split for bulk t ab le 70 shows the bit allocation of start split (ss) and complete split (cs) for bulk, asynchronous start split and complete split (ss/cs) transfer descriptor. [1] reserved. [2] endpt[0]. table 70. start and complete split for bulk: bit allocation bit 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 dw7 reserved dw5 reserved dw3 ahbxsc [1] dt cerr [1:0] nakcnt[3:0] reserved nrbytestransferred[14:0] dw1 hubaddress[6:0] portnumber[6:0] se[1:0] [1] sep type [1:0] to k e n [1:0] deviceaddress[6:0] endpt[3:1] bit 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 dw6 reserved dw4 reserved j nextptdaddress[4:0] dw2 reserved rl[3:0] [1] datastartaddress[15:0] reserved dw0 [2] [1] maxpacketlength[10:0] nrbytestotransfer[14:0] [1] v
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 74 of 163 nxp semiconductors isp1761 hi-speed usb otg controller table 71. start and complete split for bulk: bit description bit symbol access value description dw7 63 to 32 reserved - - - dw6 31 to 0 reserved - - - dw5 63 to 32 reserved - - - dw4 31 to 6 reserved - - - 5j sw writes - 0 to increment the ptd pointer. 1 to enable the next ptd branching. 4 to 0 nextptdpointer[4:0] sw writes - next ptd pointer : next ptd branching assigned by the ptd pointer. dw3 63 a sw sets hw resets - active : write the same value as that in v. 62 h hw writes - halt : this bit corresponds to the halt bit of the status ?eld of td. 61 b hw writes - babble : this bit corresponds to the babble detected bit in the status ?eld of itd, sitd or td. 1 when babbling is detected, a and v are set to 0. 60 x hw writes - transaction error : this bit corresponds to the transaction error bit in the status ?eld. sw writes - 0 before scheduling 59 sc sw writes 0 hw updates - start/complete : 0 start split 1 complete split 58 reserved - - - 57 dt hw writes sw writes - data toggle : set the data toggle bit to start for the ptd. 56 to 55 cerr[1:0] hw updates sw writes - error counter : this ?eld contains the error count for asynchronous start and complete split (ss/cs) td. when an error has no response or bad response, cerr[1:0] will be decremented to zero and then valid will be set to zero. a nak or nyet will reset cerr[1:0]. for details, refer to section 4.12.1.2 of ref . 2 enhanced host controller interf ace speci? cation f or univ ersal ser ial bus re v . 1.0 . if retry has insuf?cient time at the beginning of a new sof, the ?rst ptd must be this retry. this can be accomplished if aperiodic ptd is not advanced. 54 to 51 nakcnt[3:0] hw writes sw writes - nak counter : the v bit is reset if nakcnt decrements to zero and rl is a non-zero value. not applicable to isochronous split transactions. 50 to 47 reserved - - -
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 75 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 46 to 32 nrbytes transferred[14:0] hw writes - number of bytes transferred : this ?eld indicates the number of bytes sent or received for this transaction. dw2 31 to 29 reserved - - - 28 to 25 rl[3:0] sw writes - reload : if rl is set to 0h, hardware ignores the nakcnt value. set rl and nakcnt to the same value before a transaction. for full-speed and low-speed transactions, set this ?eld to 0000b. not applicable to isochronous start split and complete split. 24 reserved - - - 23 to 8 datastartaddress [15:0] sw writes - data start address : this is the start address for data that will be sent or received on or from the usb bus. this is the internal memory address and not the direct cpu address. ram address = (cpu address - 400h) / 8 7 to 0 reserved - - - dw1 63 to 57 hubaddress[6:0] sw writes - hub address : this indicates the hub address. 56 to 50 portnumber[6:0] sw writes - port number : this indicates the port number of the hub or embedded tt. 49 to 48 se[1:0] sw writes - this depends on the endpoint type and direction. it is valid only for split transactions. t ab le 72 applies to start split and complete split only. 47 reserved - - - 46 s sw writes - this bit indicates whether a split transaction has to be executed: 0 high-speed transaction 1 split transaction 45 to 44 eptype[1:0] sw writes - endpoint type : 00 control 10 bulk 43 to 42 token[1:0] sw writes - token : this ?eld indicates the pid for this transaction. 00 out 01 in 10 setup 41 to 35 deviceaddress[6:0] sw writes - device address : this is the usb address of the function containing the endpoint that is referred to by this buffer. 34 to 32 endpt[3:1] sw writes - endpoint : this is the usb address of the endpoint within the function. dw0 31 endpt[0] sw writes - endpoint : this is the usb address of the endpoint within the function. 30 to 29 reserved - - - table 71. start and complete split for bulk: bit description continued bit symbol access value description
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 76 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 28 to 18 maximumpacket length[10:0] sw writes - maximum packet length : this ?eld indicates the maximum number of bytes that can be sent to or received from an endpoint in a single data packet. the maximum packet size for full-speed is 64 bytes as de?ned in ref . 1 univ ersal ser ial bus speci? cation re v . 2.0 . 17 to 3 nrbytesto transfer[14:0] sw writes - number of bytes to transfer : this ?eld indicates the number of bytes that can be transferred by this data structure. it is used to indicate the depth of the data ?eld. 2 to 1 reserved - - - 0v sw sets hw resets - valid : 0 this bit is deactivated when the entire ptd is executed, or when a fatal error is encountered. 1 software updates to one when there is payload to be sent or received. the current ptd is active. table 71. start and complete split for bulk: bit description continued bit symbol access value description table 72. se description bulk control s e remarks i/o i/o 1 0 low-speed i/o i/o 0 0 full-speed
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 77 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 8.5.5 start and complete split for isochronous t ab le 73 shows the bit allocation for start and complete split for isochronous, split isochronous transfer descriptor (sitd). [1] reserved. [2] endpt[0]. table 73. start and complete split for isochronous: bit allocation bit 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 dw7 reserved iso_in_7[7:0] dw5 iso_in_2[7:0] iso_in_1[7:0] iso_in_0[7:0] m scs[7:0] dw3 ahbxsc [1] dt reserved nrbytestransferred[11:0] dw1 hubaddress[6:0] portnumber[6:0] reserved s ep type [1:0] to k e n [1:0] deviceaddress[6:0] endpt[3:1] bit 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 dw6 iso_in_6[7:0] iso_in_5[7:0] iso_in_4[7:0] iso_in_3[7:0] dw4 status7[2:0] status6[2:0] status5[2:0] status4[2:0] status3[2:0] status2[2:0] status1[2:0] status0[2:0] m sa[7:0] dw2 reserved datastartaddress[15:0] m frame[7:0] (full-speed) dw0 [2] [1] tt_mps_len[10:0] nrbytestotransfer[14:0] (1 kb for full-speed) [1] v
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 78 of 163 nxp semiconductors isp1761 hi-speed usb otg controller table 74. start and complete split for isochronous: bit description bit symbol access value description dw7 63 to 40 reserved - - - 39 to 32 iso_in_7[7:0] hw writes - bytes received during m sof7, if m sa[7] is set to 1 and frame number is correct. dw6 31 to 24 iso_in_6[7:0] hw writes - bytes received during m sof6, if m sa[6] is set to 1 and frame number is correct. 23 to 16 iso_in_5[7:0] hw writes - bytes received during m sof5, if m sa[5] is set to 1 and frame number is correct. 15 to 8 iso_in_4[7:0] hw writes - bytes received during m sof4, if m sa[4] is set to 1 and frame number is correct. 7 to 0 iso_in_3[7:0] hw writes - bytes received during m sof3, if m sa[3] is set to 1 and frame number is correct. dw5 63 to 56 iso_in_2[7:0] hw writes - bytes received during m sof2 (bits 7 to 0), if m sa[2] is set to 1 and frame number is correct. 55 to 48 iso_in_1[7:0] hw writes - bytes received during m sof1, if m sa[1] is set to 1 and frame number is correct. 47 to 40 iso_in_0[7:0] hw writes - bytes received during m sof0 if m sa[0] is set to 1 and frame number is correct. 39 to 32 m scs[7:0] sw writes (0 ? 1) hw writes (1 ? 0) after processing - all bits can be set to one for every transfer. it speci?es which m sof the complete split needs to be sent. valid only for in. start split and complete split active bits, m sa = 0000 0001 and m scs = 0000 0100, will cause ss to execute in m frame0 and cs in m frame2. dw4 31 to 29 status7[2:0] hw writes - isochronous in or out status of m sof7 28 to 26 status6[2:0] hw writes - isochronous in or out status of m sof6 25 to 23 status5[2:0] hw writes - isochronous in or out status of m sof5 22 to 20 status4[2:0] hw writes - isochronous in or out status of m sof4 19 to 17 status3[2:0] hw writes - isochronous in or out status of m sof3 16 to 14 status2[2:0] hw writes - isochronous in or out status of m sof2 13 to 11 status1[2:0] hw writes - isochronous in or out status of m sof1 10 to 8 status0[2:0] hw writes - isochronous in or out status of m sof0 bit 0 transaction error (in and out) bit 1 babble (in token only) bit 2 underrun (out token only) 7to0 m sa[7:0] sw writes (0 ? 1) hw writes (1 ? 0) after processing - speci?es which m sof the start split needs to be placed. for out token : when the frame number of bits dw2[7:3] matches the frame number of the usb bus, these bits are checked for one before they are sent for the m sof. for in token : only m sof0, m sof1, m sof2 or m sof3 can be set to 1. nothing can be set for m sof4 and above.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 79 of 163 nxp semiconductors isp1761 hi-speed usb otg controller dw3 63 a sw sets hw resets - active : write the same value as that in v. 62 h hw writes - halt : the halt bit is set when any microframe transfer status has a stalled or halted condition. 61 b hw writes - babble : this bit corresponds to bit 1 of status0 to status7 for every microframe transfer status. 60 x hw writes - transaction error : this bit corresponds to bit 0 of status0 to status7 for every microframe transfer status. 59 sc sw writes 0 hw updates - start/complete : 0 start split 1 complete split 58 reserved - - - 57 dt hw writes sw writes - data toggle : set the data toggle bit to start for the ptd. 56 to 44 reserved - - - 43 to 32 nrbytes transferred [11:0] hw writes - number of bytes transferred : this ?eld indicates the number of bytes sent or received for this transaction. dw2 31 to 24 reserved - - - 23 to 8 datastart address[15:0] sw writes - data start address : this is the start address for data that will be sent or received on or from the usb bus. this is the internal memory address and not the cpu address. 7to0 m frame[7:0] sw writes - bits 7 to 3 determine which frame to execute. dw1 63 to 57 hubaddress [6:0] sw writes - hub address : this indicates the hub address. 56 to 50 portnumber [6:0] sw writes - port number : this indicates the port number of the hub or embedded tt. 49 to 47 reserved - - - 46 s sw writes - split : this bit indicates whether a split transaction has to be executed: 0 high-speed transaction 1 split transaction 45 to 44 eptype[1:0] sw writes - transaction type : 01 isochronous 43 to 42 token[1:0] sw writes - token : token pid for this transaction: 00 out 01 in table 74. start and complete split for isochronous: bit description continued bit symbol access value description
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 80 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 41 to 35 device address[6:0] sw writes - device address : this is the usb address of the function containing the endpoint that is referred to by this buffer. 34 to 32 endpt[3:1] sw writes - endpoint : this is the usb address of the endpoint within the function. dw0 31 endpt[0] sw writes - endpoint : this is the usb address of the endpoint within the function. 30 to 29 reserved - - - 28 to 18 tt_mps_len [10:0] sw writes - transaction translator maximum packet size length : this ?eld indicates the maximum number of bytes that can be sent per start split depending on the number of total bytes needed. if the total bytes to be sent for the entire millisecond is greater than 188 bytes, this ?eld should be set to 188 bytes for an out token and 192 bytes for an in token. otherwise, this ?eld should be equal to the total bytes sent. 17 to 3 nrbytesto transfer[14:0] sw writes - number of bytes to transfer : this ?eld indicates the number of bytes that can be transferred by this data structure. it is used to indicate the depth of the data ?eld. this ?eld is restricted to 1023 bytes because in sitd the maximum allowable payload for a full-speed device is 1023 bytes. this ?eld indirectly becomes the maximum packet size of the downstream device. 2 to 1 reserved - - - 0v sw sets hw resets - 0 this bit is deactivated when the entire ptd is executed, or when a fatal error is encountered. 1 software updates to one when there is payload to be sent or received. the current ptd is active. table 74. start and complete split for isochronous: bit description continued bit symbol access value description
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 81 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 8.5.6 start and complete split for interrupt t ab le 75 shows the bit allocation of start and complete split for interrupt. [1] reserved. [2] endpt[0]. table 75. start and complete split for interrupt: bit allocation bit 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 dw7 reserved int_in_7[7:0] dw5 int_in_2[7:0] int_in_1[7:0] int_in_0[7:0] m scs[7:0] dw3 ahbxsc [1] dt cerr [1:0] reserved nrbytestransferred[11:0] (4 kb for full-speed and low-speed) dw1 hubaddress[6:0]` portnumber[6:0] se[1:0] - s ep type [1:0] to k e n [1:0] deviceaddress[6:0] endpt[3:1] bit 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 dw6 int_in_6[7:0] int_in_5[7:0] int_in_4[7:0] int_in_3[7:0] dw4 status7[2:0] status6[2:0] status5[2:0] status4[2:0] status3[2:0] status2[2:0] status1[2:0] status0[2:0] m sa[7:0] dw2 reserved datastartaddress[15:0] m frame[7:0] (full-speed and low-speed) dw0 [2] [1] maxpacketlength[10:0] nrbytestotransfer[14:0] (4 kb for full-speed and low-speed) [1] v
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 82 of 163 nxp semiconductors isp1761 hi-speed usb otg controller table 76. start and complete split for interrupt: bit description bit symbol access value description dw7 63 to 40 reserved - - - 39 to 32 int_in_7[7:0] hw writes - bytes received during m sof7, if m sa[7] is set to 1 and frame number is correct. the new value continuously overwrites the old value. dw6 31 to 24 int_in_6[7:0] hw writes - bytes received during m sof6, if m sa[6] is set to 1 and frame number is correct. the new value continuously overwrites the old value. 23 to 16 int_in_5[7:0] hw writes - bytes received during m sof5, if m sa[5] is set to 1 and frame number is correct. the new value continuously overwrites the old value. 15 to 8 int_in_4[7:0] hw writes - bytes received during m sof4, if m sa[4] is set to 1 and frame number is correct. the new value continuously overwrites the old value. 7 to 0 int_in_3[7:0] hw writes - bytes received during m sof3, if m sa[3] is set to 1 and frame number is correct. the new value continuously overwrites the old value. dw5 63 to 56 int_in_2[7:0] hw writes - bytes received during m sof2 (bits 7 to 0), if m sa[2] is set to 1 and frame number is correct. the new value continuously overwrites the old value. 55 to 48 int_in_1[7:0] hw writes - bytes received during m sof1, if m sa[1] is set to 1 and frame number is correct. the new value continuously overwrites the old value. 47 to 40 int_in_0[7:0] hw writes - bytes received during m sof0 if m sa[0] is set to 1 and frame number is correct. the new value continuously overwrites the old value. 39 to 32 m scs[7:0] sw writes (0 ? 1) hw writes (1 ? 0) after processing - all bits can be set to one for every transfer. it speci?es which m sof the complete split needs to be sent. valid only for in. start split and complete split active bits, m sa = 0000 0001 and m scs = 0000 0100, will cause ss to execute in m frame0 and cs in m frame2. dw4 31 to 29 status7[2:0] hw writes - interrupt in or out status of m sof7 28 to 26 status6[2:0] hw writes - interrupt in or out status of m sof6 25 to 23 status5[2:0] hw writes - interrupt in or out status of m sof5 22 to 20 status4[2:0] hw writes - interrupt in or out status of m sof4 19 to 17 status3[2:0] hw writes - interrupt in or out status of m sof3 16 to 14 status2[2:0] hw writes - interrupt in or out status of m sof2 13 to 11 status1[2:0] hw writes - interrupt in or out status of m sof1 10 to 8 status0[2:0] hw writes - interrupt in or out status of m sof0 bit 0 transaction error (in and out) bit 1 babble (in token only) bit 2 underrun (out token only)
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 83 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 7to0 m sa[7:0] sw writes (0 ? 1) hw writes (1 ? 0) after processing - speci?es which m sof the start split needs to be placed. for out token : when the frame number of bits dw1[7:3] matches the frame number of the usb bus, these bits are checked for one before they are sent for the m sof. for in token : only m sof0, m sof1, m sof2 or m sof3 can be set to 1. nothing can be set for m sof4 and above. dw3 63 a sw sets hw resets - active : write the same value as that in v. 62 h hw writes - halt : the halt bit is set when any microframe transfer status has a stalled or halted condition. 61 b hw writes - babble : this bit corresponds to bit 1 of status0 to status7 for every microframe transfer status. 60 x hw writes - transaction error : this bit corresponds to bit 0 of status0 to status7 for every microframe transfer status. 59 sc sw writes 0 hw updates - start/complete : 0 start split 1 complete split 58 reserved - - - 57 dt hw writes sw writes - data toggle : for an interrupt transfer, set correct bit to start the ptd. 56 to 55 cerr[1:0] hw writes sw writes - error counter : this ?eld corresponds to the cerr[1:0] ?eld in td. 00 the transaction will not retry. 11 the transaction will retry three times. hardware will decrement these values. 54 to 44 reserved - - - 43 to 32 nrbytes transferred [11:0] hw writes - number of bytes transferred : this ?eld indicates the number of bytes sent or received for this transaction. dw2 31 to 24 reserved - - - 23 to 8 datastart address[15:0] sw writes - data start address : this is the start address for data that will be sent or received on or from the usb bus. this is the internal memory address and not the cpu address. 7to0 m frame[7:0] sw writes - bits 7 to 3 is the polling rate in milliseconds. polling rate is de?ned as 2 (b - 1) m sof; where b = 4 to 16. when b is 4, executed every millisecond. see t ab le 77 . dw1 63 to 57 hubaddress [6:0] sw writes - hub address : this indicates the hub address. 56 to 50 portnumber [6:0] sw writes - port number : this indicates the port number of the hub or embedded tt. 49 to 48 se[1:0] sw writes - this depends on the endpoint type and direction. it is valid only for split transactions. t ab le 78 applies to start split and complete split only. table 76. start and complete split for interrupt: bit description continued bit symbol access value description
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 84 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 47 reserved - - - 46 s sw writes - this bit indicates whether a split transaction has to be executed: 0 high-speed transaction 1 split transaction 45 to 44 eptype[1:0] sw writes - transaction type: 11 interrupt 43 to 42 token[1:0] sw writes - token pid for this transaction: 00 out 01 in 41 to 35 deviceaddress [6:0] sw writes - device address : this is the usb address of the function containing the endpoint that is referred to by this buffer. 34 to 32 endpt[3:1] sw writes - endpoint : this is the usb address of the endpoint within the function. dw0 31 endpt[0] sw writes - endpoint : this is the usb address of the endpoint within the function. 30 to 29 reserved - - - 28 to 18 maxpacket length[10:0] sw writes - maximum packet length : this ?eld indicates the maximum number of bytes that can be sent to or received from an endpoint in a single data packet. the maximum packet size for the full-speed and low-speed devices is 64 bytes as de?ned in ref . 1 univ ersal ser ial bus speci? cation re v . 2.0 . 17 to 3 nrbytesto transfer[14:0] sw writes - number of bytes to transfer : this ?eld indicates the number of bytes that can be transferred by this data structure. it is used to indicate the depth of the data ?eld. the maximum total number of bytes for this transaction is 4 kb. 2 to 1 reserved - - - 0v sw sets hw resets - 0 this bit is deactivated when the entire ptd is executed, or when a fatal error is encountered. 1 software updates to one when there is payload to be sent or received. the current ptd is active. table 76. start and complete split for interrupt: bit description continued bit symbol access value description table 77. microframe description b rate m frame[7:3] 5 2 ms 0 0001 6 4 ms 0 0010 or 0 0011 7 8 ms 0 0100 or 0 0111 8 16 ms 0 1000 or 0 1111 9 32 ms 1 0000 or 1 1111 table 78. se description interrupt s e remarks i/o 1 0 low-speed i/o 0 0 full-speed
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 85 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 9. otg controller 9.1 introduction otg is a supplement to the hi-speed usb speci?cation that augments existing usb peripherals by adding to these peripherals limited host capability to support other targeted usb peripherals. it is primarily targeted at portable devices because it addresses concerns related to such devices, such as a small connector and low power. non-portable devices, even standard hosts, can also bene?t from otg features. the isp1761 otg controller is designed to perform all the tasks speci?ed in the otg supplement. it supports host negotiation protocol (hnp) and session request protocol (srp) for dual-role devices. the isp1761 uses software implementation of hnp and srp for maximum ?exibility. a set of otg registers provides the control and status monitoring capabilities to support software hnp and srp. besides the normal usb transceiver, timers and analog components required by otg are also integrated on-chip. the analog components include: ? built-in 3.3 v-to-5 v charge pump ? voltage comparators ? pull-up or pull-down resistors on data lines ? charging or discharging resistors for v bus 9.2 dual-role device when port 1 of the isp1761 is con?gured in otg mode, it can be used as an otg dual-role device. a dual-role device is a usb device that can function either as a host or as a peripheral. the default role of the isp1761 is controlled by the id pin, which in turn is controlled by the type of plug connected to the micro-ab receptacle. if id = low (micro-a plug connected), it becomes an a-device, which is a host by default. if id = high (micro-b plug connected), it becomes a b-device, which is a peripheral by default. both the a-device and the b-device work on a session base. a session is de?ned as the period of time in which devices exchange data. a session starts when v bus is driven and ends when v bus is turned off. both the a-device and the b-device may start a session. during a session, the role of the host can be transferred back and forth between the a-device and the b-device any number of times by using hnp. if the a-device wants to start a session, it turns on v bus by enabling the charge pump. the b-device detects that v bus has risen above the b_sess_vld level and assumes the role of a peripheral asserting its pull-up resistor on the dp line. the a-device detects the remote pull-up resistor and assumes the role of a host. then, the a-device can communicate with the b-device as long as it wishes. when the a-device ?nishes communicating with the b-device, the a-device turns off v bus and both the devices ?nally go into the idle state. see figure 15 and figure 16 . if the b-device wants to start a session, it must initiate srp by data line pulsing and v bus pulsing. when the a-device detects any of these srp events, it turns on its v bus . (note: only the a-device is allowed to drive v bus .) the b-device assumes the role of a
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 86 of 163 nxp semiconductors isp1761 hi-speed usb otg controller peripheral, and the a-device assumes the role of a host. the a-device detects that the b-device can support hnp by getting the otg descriptor from the b-device. the a-device will then enable the hnp hand-off by using setfeature (b_hnp_enable) and then go into the suspend state. the b-device signals claiming the host role by de-asserting its pull-up resistor. the a-device acknowledges by going into the peripheral state. the b-device then assumes the role of a host and communicates with the a-device as long as it wishes. when the b-device ?nishes communicating with the a-device, both the devices ?nally go into the idle state. see figure 15 and figure 16 . 9.3 session request protocol (srp) as a dual-role device, the isp1761 can initiate and respond to srp. the b-device initiates srp by data line pulsing, followed by v bus pulsing. the a-device can detect either data line pulsing or v bus pulsing. 9.3.1 b-device initiating srp the isp1761 can initiate srp by performing the following steps: 1. detect initial conditions [read b_sess_end and b_se0_srp (bits 7 and 8) of the otg status register]. 2. start data line pulsing [set dp_pullup (bit 0) of the otg control (set) register to logic 1]. 3. wait for 5 ms to 10 ms. 4. stop data line pulsing [set dp_pullup (bit 0) of the otg control (clear) register to logic 0]. 5. start v bus pulsing [set vbus_chrg (bit 6) of the otg control (set) register to logic 1]. 6. wait for 10 ms to 20 ms. 7. stop v bus pulsing [set vbus_chrg (bit 6) of the otg control (clear) register to logic 0]. 8. discharge v bus for about 30 ms [by using vbus_dischrg (bit 5) of the otg control (set) register], optional. the b-device must complete both data line pulsing and v bus pulsing within 100 ms. 9.3.2 a-device responding to srp the a-device must be able to respond to one of the two srp events: data line pulsing or v bus pulsing. when data line pulsing is used, the isp1761 can detect dp pulsing. this means that the peripheral-only device must initiate data line pulsing through dp. a dual-role device will always initiate data line pulsing through dp. to enable the srp detection through the v bus pulsing, set a_b_sess_vld (bit 1) in the otg interrupt enable fall and otg interrupt enable rise registers. to enable the srp detection through the dp pulsing, set dp_srp (bit 2) in the otg interrupt enable rise register.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 87 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 9.4 host negotiation protocol (hnp) hnp is used to transfer control of the host role between the default host (a-device) and the default peripheral (b-device) during a session. when the a-device is ready to give up its role as a host, it will condition the b-device using setfeature (b_hnp_enable) and will go into suspend. if the b-device wants to use the bus at that time, it signals a disconnect to the a-device. then, the a-device will take the role of a peripheral and the b-device will take the role of a host. 9.4.1 sequence of hnp events the sequence of events for hnp as observed on the usb bus is illustrated in figure 14 . as can be seen in figure 14 : 1. the a-device completes using the bus and stops all bus activity, that is, suspends the bus. 2. the b-device detects that the bus is idle for more than 5 ms and begins hnp by turning off the pull-up on dp. this allows the bus to discharge to the se0 state. 3. the a-device detects se0 on the bus and recognizes this as a request from the b-device to become a host. the a-device responds by turning on its dp pull-up within 3 ms of ?rst detecting se0 on the bus. 4. after waiting for 30 m s to ensure that the dp line is not high because of the residual effect of the b-device pull-up, the b-device notices that the dp line is high and the dm line is low, that is, j state. this indicates that the a-device has recognized the hnp request from the b-device. at this point, the b-device becomes a host and asserts bus reset to start using the bus. the b-device must assert the bus reset, that is, se0, within 1 ms of the time that the a-device turns on its pull-up. 5. when the b-device completes using the bus, it stops all bus activities. optionally, the b-device may turn on its dp pull-up at this time. remark: the bus idle state will generate a dc suspend interrupt corresponding to the toggle of the susp bit in the dcinterrupt register (address: 218h), when accordingly enabled. fig 14. hnp sequence of events a-device 1 5 7 2 3 4 6 8 b-device 004aaa079 dp composite legend dp driven pull-up dominates pull-down dominates normal bus activity
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 88 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 6. the a-device detects lack of bus activity for more than 3 ms and turns off its dp pull-up. alternatively, if the a-device has no further need to communicate with the b-device, the a-device may turn off v bus and end the session. 7. the b-device turns on its pull-up. 8. after waiting 30 m s to ensure that the dp line is not high because of the residual effect of the a-device pull-up, the a-device notices that the dp-line is high and the dm line is low, indicating that the b-device is signaling a connect and is ready to respond as a peripheral. at this point, the a-device becomes a host and asserts the bus reset to start using the bus. 9.4.2 otg state diagrams figure 15 and figure 16 show state diagrams for the dual-role a-device and the dual-role b-device, respectively. for a detailed explanation, refer to ref . 3 on-the-go supplement to the usb speci? cation re v . 1.3 . the otg state machine is implemented with software. the inputs to the state machine come from four sources: hardware signals from the usb bus, software signals from the application program, internal variables with the state machines, and timers: ? hardware inputs: include id, a_vbus_vld, a_sess_vld, b_sess_vld, b_sess_end, a_conn, b_conn, a_bus_suspend, b_bus_suspend, a_bus_resume, b_bus_resume, a_srp_det and b_se0_srp. all these inputs can be derived from the otg interrupt and otg status registers. ? software inputs: include a_bus_req, a_bus_drop and b_bus_req. ? internal variables: include a_set_b_hnp_en, b_hnp_enable and b_srp_done. ? timers: the hnp state machine uses four timers: a_wait_vrise_tmr, a_wait_bcon_tmr, a_aidl_bdis_tmr and b_ase0_brst, tmr. all timers are started on entry to and reset on exit from their associated states. the isp1761 provides a programmable timer that can be used as any of these four timers.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 89 of 163 nxp semiconductors isp1761 hi-speed usb otg controller fig 15. dual-role a-device state diagram 004aaa566 a_idle drv_vbus/ chrg_vbus/ loc_conn/ loc_sof/ a_vbus_err drv_vbus/ loc_conn/ loc_sof/ a_wait_vrise drv_vbus loc_conn/ loc_sof/ a_wait_bcon drv_vbus loc_conn/ loc_sof/ a_host drv_vbus loc_conn/ loc_sof a_wait_vfall drv_vbus/ loc_conn/ loc_sof/ a_peripheral drv_vbus loc_conn loc_sof/ a_suspend drv_vbus loc_conn/ loc_sof/ b_idle drv_vbus/ chrg_vbus/ loc_conn/ loc_sof/ id start a_bus_drop/ & (a_bus_req | a_srp_det) id | a_bus_req | (a_sess_vld/ & b_conn/) a_bus_req | b_bus_resume a_bus_req/ | a_suspend_req a_vbus_vld/ a_vbus_vld/ a_vbus_vld/ b_conn a_vbus_vld/ id | a_bus_drop b_bus_suspend id | a_bus_drop | a_vbus_vld | a_wait_vrise_tmout id | a_bus_drop | a_wait_bcon_tmout id | b_conn/ | a_bus_drop b_conn/ & a_set_b_hnp_en b_conn/ & a_set_b_hnp_en/ id | a_bus_drop | a_aidl_bdis_tmout id | a_bus_drop
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 90 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 9.4.3 hnp implementation and otg state machine the otg state machine is the software behind all the otg functionality. it is implemented in the microprocessor system that is connected to the isp1761. the isp1761 provides registers for all input status, the output control and timers to fully support the state machine transitions in figure 15 and figure 16 . these registers include: ? otg control register: provides control to v bus driving, charging or discharging, data line pull-up or pull-down, srp detection, and so on. ? otg status register: provides status detection on v bus and data lines including id, v bus session valid, session end, overcurrent and bus status. ? otg interrupt latch register: provides interrupts for status change in otg interrupt status register bits and the otg timer time-out event. ? otg interrupt enable fall and otg interrupt enable rise registers: provide interrupt mask for otg interrupt latch register bits. ? otg timer register: provides 0.01 ms base programmable timer for use in the otg state machine. the following steps are required to enable an otg interrupt: 1. set the polarity and level-triggering or edge-triggering mode of the hw mode control register. fig 16. dual-role b-device state diagram 004aaa567 b_idle drv_vbus/ chrg_vbus/ loc_conn/ loc_sof/ b_srp_init pulse loc_conn pulse chrg_vbus loc_sof/ b_peripheral chrg_vbus/ loc_conn loc_sof/ b_host chrg_vbus/ loc_conn/ loc_sof b_wait_acon chrg_vbus/ loc_conn/ loc_sof/ a_idle drv_vbus/ chrg_vbus/ loc_conn/ loc_sof/ id/ start b_bus_req/ | a_conn/ b_sess_vld id/ | b_sess_vld/ id/ | b_sess_vld/ id/ | b_sess_vld/ a_bus_resume | b_ase0_brst_tmout b_bus_req & b_hnp_en & a_bus_suspend a_conn b_bus_req & b_sess_end & b_se0_srp id/ | b_srp_done
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 91 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 2. set the corresponding bits of the otg interrupt enable rise and otg interrupt enable fall registers. 3. set bit otg_irq_e of the hcinterruptenable register (bit 10). 4. set bit global_intr_en of the hw mode control register (bit 0). when an interrupt is generated on hc_irq, perform these steps in the interrupt service routine to get the related otg status: 1. read the hcinterrupt register. if otg_irq (bit 10) is set, then step 2. 2. read the otg interrupt latch register. if any of the bits 0 to 4 are set, then step 3. 3. read the otg status register. the otg state machine routines are called when any of the inputs is changed. these inputs come from either otg registers (hardware) or application program (software). the outputs of the state machine include control signals to the otg register (for hardware) and states or error codes (for software). the isp1761 can be con?gured in otg mode or in pure host or peripheral mode. programming the isp1761 in otg mode is done by con?guring bit 10 of the otg control register. this will enable otg-speci?c mechanisms controlled by the otg control register bits. when the otg protocol is not implemented by the software, the isp1761 can be used as a host or a peripheral. in this case, bit 10 of the otg control register will be set to logic 0. the host or peripheral functionality is determined by bit 7 of the otg control register. programming of otg registers is done by a set and reset scheme. an otg register has two parts: a 16-bit set and a 16-bit reset. writing logic 1 in a certain position to the set-type dedicated 16-bit register part will set the respective bit to logic 1 while writing logic 1 to the reset-type 16-bit dedicated register will change the corresponding bit to logic 0. 9.5 otg controller registers table 79. otg controller-speci?c register overview address register reset value references 037xh to 038xh otg registers - - table 80. address mapping of registers: 32-bit data bus mode address byte 3 byte 2 byte 1 byte 0 device id registers 0370h product id (read only) vendor id (read only) otg control register 0374h otg control (clear) otg control (set) otg interrupt registers 0378h reserved otg status (read only) 037ch otg interrupt latch (clear) otg interrupt latch (set) 0380h otg interrupt enable fall (clear) otg interrupt enable fall (set) 0384h otg interrupt enable rise (clear) otg interrupt enable rise (set)
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 92 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 9.5.1 device identi?cation registers 9.5.1.1 vendor id register t ab le 82 shows the bit description of the register. 9.5.1.2 product id register (r: 0372h) the bit description of the register is given in t ab le 83 . otg timer register 0388h otg timer (lower word: clear) otg timer (lower word: set) 038ch otg timer (higher word: clear) otg timer (higher word: set) table 81. address mapping of registers: 16-bit data bus mode address byte 1 byte 0 reference device id registers 0370h vendor id (read only) section 9.5.1.1 on page 92 0372h product id (read only) section 9.5.1.2 on page 92 otg control register 0374h otg control (set) section 9.5.2.1 on page 93 0376h otg control (clear) otg interrupt registers 0378h otg status (read only) section 9.5.3.1 on page 94 037ah reserved - 037ch otg interrupt latch (set) section 9.5.3.2 on page 95 037eh otg interrupt latch (clear) 0380h otg interrupt enable fall (set) section 9.5.3.3 on page 96 0382h otg interrupt enable fall (clear) 0384h otg interrupt enable rise (set) section 9.5.3.4 on page 96 0386h otg interrupt enable rise (clear) otg timer register 0388h otg timer (lower word: set) section 9.5.4.1 on page 97 038ah otg timer (lower word: clear) 038ch otg timer (higher word: set) 038eh otg timer (higher word: clear) table 80. address mapping of registers: 32-bit data bus mode continued address byte 3 byte 2 byte 1 byte 0 table 82. vendor id - vendor identi?er (address 0370h) register: bit description bit symbol access value description 15 to 0 vendor_id[15:0] r 04cch nxp semiconductors vendor id table 83. product id - product identi?er register (address 0372h) bit description bit symbol access value description 15 to 0 product_id[15:0] r 1761h product id of the isp1761
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 93 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 9.5.2 otg control register 9.5.2.1 otg control register t ab le 84 shows the bit allocation of the register. [1] the reserved bits should always be written with the reset value. table 84. otg control register (address set: 0374h, clear: 0376h) bit allocation bit 15 14 13 12 11 10 9 8 symbol reserved [1] otg_ disable otg_se0_ en bdis_ acon_en reset 00000000 access r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c bit 7 6 5 4 3 2 1 0 symbol sw_sel_ hc_dc vbus_ chrg vbus_ dischrg vbus_ drv sel_cp_ ext dm_pull down dp_pull down dp_pull up reset 10000110 access r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c table 85. otg control register (address set: 0374h, clear: 0376h) bit description bit [1] symbol description 15 to 11 - reserved for future use 10 otg_disable 0 otg functionality enabled 1 otg disabled; pure host or peripheral 9 otg_se0_en this bit is used by the host controller to send se0 on remote connect. 0 no se0 sent on remote connect detection 1 se0 (bus reset) sent on remote connect detection remark: this bit is normally set when the b-device goes into the b_wait_acon state (recommended sequence: loc_conn = 0 ? delay ? 0ms ? otg_seq_en = 1 ? sel_hc_dc = 0) and is cleared when it comes out of the b_wait_acon state. 8 bdis_acon_en enables the a-device to connect if the b-device disconnect is detected 7 sw_sel_hc_ dc in software hnp mode, this bit selects between the host controller and the peripheral controller. 0 host controller connected to atx 1 peripheral controller connected to atx this bit is set to logic 1 by hardware when there is an event corresponding to the bdis_acon interrupt. bdis_acon_en is set and there is an automatic pull-up connection on remote disconnect. 6 vbus_chrg connect v bus to v cc(i/o) through a resistor 5 vbus_dischrg discharge v bus to ground through a resistor 4 vbus_drv drive v bus to 5 v using the charge pump 3 sel_cp_ext 0 internal charge pump selected 1 external charge pump selected
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 94 of 163 nxp semiconductors isp1761 hi-speed usb otg controller [1] to use port 1 as a host controller, write 0080 0018h to this register after power-on. to use port 1 as a peripheral controller, write 0006 0400h to this register after power-on. 9.5.3 otg interrupt registers 9.5.3.1 otg status register this register indicates the current state of the signals that can generate an interrupt. the bit allocation of the register is given in t ab le 86 . [1] the reset value depends on the corresponding otg status. for details, see t ab le 87 . 2 dm_pulldown dm pull-down : 0 disable 1 enable 1 dp_pulldown dp pull-down : 0 disable 1 enable 0 dp_pullup 0 the pull-up resistor is disconnected from the dp line. the data line pulsing is stopped. 1 an internal 1.5 k w pull-up resistor is present on the dp line. the data line pulsing is started. remark: when port 1 is in peripheral mode or it plays the role of a peripheral while the otg functionality is enabled, it depends on the setting of dp_pullup and the v bus sensing signal to connect the dp line to high through a pull-up resister. v bus is an internal signal. when 5 v is present on the v bus pin, v bus = 1. table 85. otg control register (address set: 0374h, clear: 0376h) bit description continued bit [1] symbol description table 86. otg status register (address 0378h) bit allocation bit 15 14 13 12 11 10 9 8 symbol reserved b_se0_ srp reset 00000000 access rrrrrrrr bit 7 6 5 4 3 2 1 0 symbol b_sess_ end reserved rmt_ conn id dp_srp a_b_sess _vld vbus_vld reset [1] 000 [1] 0 [1] [1] access rrrrrrrr table 87. otg status register (address 0378h) bit description bit symbol description 15 to 9 - reserved for future use 8 b_se0_srp 2 ms of se0 detected in the b-idle state
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 95 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 9.5.3.2 otg interrupt latch register the otg interrupt latch register indicates the source that generated the interrupt. the status of this register bits depends on the settings of the interrupt enable fall and interrupt enable rise registers, and the occurrence of the respective events. the bit allocation of the register is given in t ab le 88 . [1] the reserved bits should always be written with the reset value. 7 b_sess_end v bus < 0.8 v 6 to 5 - reserved 4 rmt_conn remote connect detection 3 id id pin digital input 2 dp_srp dp asserted during srp 1 a_b_sess_vld a-session valid for the a-device. b-session valid for the b-device. 0 vbus_vld a-device v bus valid comparator, indicates v bus > 4.4 v table 87. otg status register (address 0378h) bit description continued bit symbol description table 88. otg interrupt latch register (address set: 037ch, clear: 037eh) bit allocation bit 15 14 13 12 11 10 9 8 symbol reserved [1] otg_tmr_ timeout b_se0_ srp reset 00000000 access r/s/c r/s/c r/s/c r/s/c r/s/c r r/s/c r/s/c bit 7 6 5 4 3 2 1 0 symbol b_sess_ end bdis_ acon otg_ resume rmt_ conn id dp_srp a_b_sess _vld vbus_vld reset 00000000 access r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c table 89. otg interrupt latch register (address set: 037ch, clear: 037eh) bit description bit symbol description 15 to 10 - reserved for future use 9 otg_tmr_timeout otg timer time-out 8 b_se0_srp 2 ms of se0 detected in the b-idle state 7 b_sess_end v bus < 0.8 v 6 bdis_acon indicates that the bdis_acon event has occurred 5 otg_resume j ? k resume change detected 4 rmt_conn remote connect detection 3 id indicates change on pin id 2 dp_srp dp asserted during srp 1 a_b_sess_vld a-session valid for the a-device. b-session valid for the b-device. 0 vbus_vld indicates change in the vbus_vld status
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 96 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 9.5.3.3 otg interrupt enable fall register t ab le 90 shows the bit allocation of this register that enables interrupts on transition from high-to-low. [1] the reserved bits should always be written with the reset value. 9.5.3.4 otg interrupt enable rise register this register (see t ab le 92 for bit allocation) enables interrupts on transition from low-to-high. table 90. otg interrupt enable fall register (address set: 0380h, clear: 0382h) bit allocation bit 15 14 13 12 11 10 9 8 symbol reserved [1] b_se0_ srp reset 00000000 access r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c bit 7 6 5 4 3 2 1 0 symbol b_sess_ end reserved rmt_ conn id reserved a_b_sess _vld vbus_vld reset 00000000 access r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c table 91. otg interrupt enable fall register (address set: 0380h, clear: 0382h) bit description bit symbol description 15 to 9 - reserved for future use 8 b_se0_srp irq asserted when the bus exits from at least 2 ms of the se0 state 7 b_sess_end irq asserted when v bus > 0.8 v 6 to 5 - reserved 4 rmt_conn irq asserted on rmt_conn removal 3 id irq asserted on the id pin transition from high to low 2 - reserved 1 a_b_sess_vld irq asserted on removing a-session valid for the a-device or b-session valid for the b-device condition 0 vbus_vld irq asserted on the falling edge of v bus table 92. otg interrupt enable rise register (address set: 0384h, clear: 0386h) bit allocation bit 15 14 13 12 11 10 9 8 symbol reserved [1] otg_tmr_ timeout b_se0_ srp reset 00000000 access r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 97 of 163 nxp semiconductors isp1761 hi-speed usb otg controller [1] the reserved bits should always be written with the reset value. 9.5.4 otg timer register 9.5.4.1 otg timer register this is a 32-bit register organized as two 16-bit ?elds. these two ?elds have separate set and clear addresses. t ab le 94 shows the bit allocation of the register. bit 7 6 5 4 3 2 1 0 symbol b_sess_ end bdis_ acon otg_ resume rmt_ conn id dp_srp a_b_sess _vld vbus_vld reset 00000000 access r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c table 93. otg interrupt enable rise register (address set: 0384h, clear: 0386h) bit description bit symbol description 15 to 10 - reserved 9 otg_tmr_timeout irq asserted on otg timer time-out 8 b_se0_srp irq asserted when at least 2 ms of se0 is detected in the b-idle state 7 b_sess_end irq asserted when v bus is less than 0.8 v 6 bdis_acon irq asserted on bdis_acon condition 5 otg_resume irq asserted on j-k resume 4 rmt_conn irq asserted on rmt_conn 3 id irq asserted on the id pin transition from low to high 2 dp_srp irq asserted when dp is asserted during srp 1 a_b_sess_vld irq asserted on the a-session valid for the a-device or on the b-session valid for the b-device 0 vbus_vld irq asserted on the rising edge of v bus table 94. otg timer register (address low word set: 0388h, low word clear: 038ah; high word set: 038ch, high word clear: 038eh) bit allocation bit 31 30 29 28 27 26 25 24 symbol start_ tmr reserved [1] reset 00000000 access r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c bit 23 22 21 20 19 18 17 16 symbol timer_init_value[23:16] reset 00000000 access r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c bit 15 14 13 12 11 10 9 8 symbol timer_init_value[15:8] reset 00000000 access r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 98 of 163 nxp semiconductors isp1761 hi-speed usb otg controller [1] the reserved bits should always be written with the reset value. bit 7 6 5 4 3 2 1 0 symbol timer_init_value[7:0] reset 00000000 access r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c r/s/c table 95. otg timer register (address low word set: 0388h, low word clear: 038ah; high word set: 038ch, high word clear: 038eh) bit description bit symbol description 31 start_tmr this is the start/stop bit of the otg timer. writing logic 1 will cause the otg timer to load tmr_init_value into the counter and start to count. writing logic 0 will stop the timer. this bit is automatically cleared when the otg timer is timed out. 0 stop the timer 1 start the timer 30 to 24 - reserved 23 to 0 timer_init_ value[23:0] these bits de?ne the initial value used by the otg timer. the timer interval is 0.01 ms. maximum time allowed is 167.772 s.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 99 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 10. peripheral controller 10.1 introduction the design of the peripheral controller in the isp1761 is compatible with the nxp isp1582 hi-speed universal serial bus peripheral controller ic. the functionality of the peripheral controller in the isp1761 is similar to the isp1582 in 16-bit bus mode. in addition, the register sets are also similar, with only a few variations. the usb protocol and data transfer operations of the peripheral controller are executed using external ?rmware. the external microcontroller or microprocessor can access the peripheral controller-speci?c registers through the local bus interface. the transfer of data between a microprocessor and the peripheral controller can be done in pio mode or programmed dma mode. for details on general functional description of the peripheral controller, refer to the isp1582 data sheet. for details on the software programming, refer to ref . 6 isp1582/83 fir mw are prog r amming guide (an10039) and ref . 4 isp1582/83 control pipe (an10031) . 10.1.1 direct memory access (dma) the dma controller of the isp1761 is used to transfer data between the system memory and endpoints buffers. it is a slave dma controller that requires an external dma master to control the transfer. 10.1.1.1 dma for the in endpoint when the internal dma is enabled and at least one buffer is free, the dc_dreq line is asserted. the external dma controller then starts negotiating for control of the bus. as soon as it has access, it asserts the dc_dack line and starts writing data. the burst length is programmable. when the number of bytes equal to the burst length has been written, the dc_dreq line is de-asserted. as a result, the dma controller de-asserts the dc_dack line and releases the bus. at that moment, the whole cycle restarts for the next burst. when the buffer is full, the dc_dreq line is de-asserted and the buffer is validated, which means that it is sent to the host at the next in token. when the dma transfer is terminated, the buffer is also validated, even if it is not full. 10.1.1.2 dma for the out endpoint when the internal dma is enabled and at least one buffer is full, the dc_dreq line is asserted. the external dma controller then starts negotiating for control of the bus. as soon as it has access, it asserts the dc_dack line and starts reading data. the burst length is programmable. when the number of bytes equal to the burst length has been read, the dc_dreq line is de-asserted. as a result, the dma controller de-asserts the dc_dack line and releases the bus. at that moment, the whole cycle restarts for the next burst. when all the data is read, the dc_dreq line is de-asserted and the buffer is cleared. this means that it can be overwritten when a new packet arrives. 10.1.1.3 dma initialization to reduce the power consumption, a controllable clock that drives dma controller circuits is turned off, by default. if the dma functionality is required by an application, dmaclkon (bit 9) of the mode register (address: 020ch) must be enabled during initialization of the
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 100 of 163 nxp semiconductors isp1761 hi-speed usb otg controller peripheral controller. if dma is not required by the application, dmaclkon can be permanently disabled to save current. the burst counter, dma bus width, and the polarity of dc_dreq and dc_dack must accordingly be set. the isp1761 supports only counter mode dma transfer. to enable counter mode, ensure that dis_xfer_cnt in the dcdmacon?guration register (address: 0238h) is set to zero. before starting the dma transfer, preset the interrupt enable bit iedma in the interrupt enable register (address: 0214h) and the dma interrupt enable register (address: 0254h). the isp1761 supports two interrupt trigger modes: level and edge. the pulse width, which in edge mode, is determined by setting the interrupt pulse width register (address: 0280h). the default value is 1eh, which indicates that the interrupt pulse width is 1 m s. the minimum interrupt pulse width is approximately 30 ns when set to logic 1. do not write a zero to this register. the interrupt polarity must also be correctly set. remark: dma can apply to all endpoints on the chip. it, however, can only take place for one endpoint at a time. the selected endpoint is assigned by setting the endpoint number in the dma endpoint register (address: 0258h). it will also internally redirect the endpoint buffer of the selected endpoint to the dma controller bus. in addition, it requires a preceding process to program the endpoint type, the endpoint maximum packet size, and the direction of the endpoint. when setting the endpoint index register (address: 022ch), the endpoint buffer of the selected endpoint is directed to the internal cpu bus for the pio access. therefore, it is required to recon?gure the endpoint index register with endpoint number, which is not an endpoint number in use for the dma transfer to avoid any confusion. 10.1.1.4 starting dma dynamically assign the dma transfer counter register (address: 0234h) for each dma transfer. the transfer will end once transfer counter reaches zero. bit dma_xfer_ok in the dma interrupt reason register (address: 0250h) will be asserted to indicate that the dma transfer has successfully stopped. if the transfer counter is larger than the burst counter, the dc_dreq signal will drop at the end of each burst transfer. dc_dreq will reassert at the beginning of each burst. for a 32-bit dma transfer, the minimum burst length is 4 bytes. this means that the burst length is only one dma cycle. therefore, dc_dreq and dc_dack will toggle by each dma cycle. for a 16-bit dma transfer, the minimum burst length is 2 bytes. setting bit gdma read or gdma write in the dma command register (address: 0230h) will start the dma transfer. remark: dack and cs_n should not be active at the same time. 10.1.1.5 dma stop and interrupt handling the dma transfer will either successfully be completed or terminated, which can be identi?ed by reading the status in the dcinterrupt register (address: 0218h) and dma interrupt reason register (address: 0250h). if bit dma_xfer_ok in the dma interrupt reason register is asserted, it means that the transfer counter has reached zero and the dma transfer is successfully stopped.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 101 of 163 nxp semiconductors isp1761 hi-speed usb otg controller if bit int_eot in the dma interrupt reason register is set, it indicates that a short or empty packet is received. this means that dma transfer terminated. normally, for an out transfer, it means that remote host wishes to terminate the dma transfer. if both the bits dma_xfer_ok and int_eot are set, it means that the transfer counter reached zero and the last packet of the transfer is a short packet. therefore, the dma transfer is successfully stopped. setting bit gdma stop in the dma command register (address: 0230h) will force the dma to stop and bit gdma_stop in the dma interrupt reason register (address: 0250h) will be set to indicate this event. setting bit reset dma in the dma command register (address: 0230h) will force the dma to stop and initialize the dma core to its power-on reset state. 10.2 endpoint description each usb peripheral is logically composed of several independent endpoints. an endpoint acts as a terminus of a communication ?ow between the usb host and the usb peripheral. at design time, each endpoint is assigned a unique endpoint identi?er; see t ab le 96 . the combination of the peripheral address (given by the host during enumeration), the endpoint number, and the transfer direction allows each endpoint to be uniquely referenced. the peripheral controller has 8 kb of internal fifo memory, which is shared among the enabled usb endpoints. the two control endpoints are ?xed 64 bytes long. any of the seven in and seven out endpoints can separately be enabled or disabled. the endpoint type (interrupt, isochronous or bulk) and packet size of these endpoints can individually be con?gured, depending on the requirements of the application. optional double buffering increases the data throughput of these data endpoints. table 96. endpoint access and programmability endpoint identi?er maximum packet size double buffering endpoint type direction ep0setup 8 bytes (?xed) no set-up token out ep0rx 64 bytes (?xed) no control out out ep0tx 64 bytes (?xed) no control in in ep1rx programmable yes programmable out ep1tx programmable yes programmable in ep2rx programmable yes programmable out ep2tx programmable yes programmable in ep3rx programmable yes programmable out ep3tx programmable yes programmable in ep4rx programmable yes programmable out ep4tx programmable yes programmable in ep5rx programmable yes programmable out ep5tx programmable yes programmable in ep6rx programmable yes programmable out
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 102 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 10.3 clear buffer use clear buffer when data needs to be discarded under the following conditions: ? in endpoint: if the host aborts a read operation, the residual data in the in endpoint buffer must be cleared using the clear buffer command. see t ab le 126 . ? out endpoint: if the host aborts a write operation, the residual data in the out endpoint buffer must be cleared using the clbuf bit. see t ab le 113 . for example, to clear a double buffer data in endpoint 1, set the following registers in the ?rmware as: 1. assign a value to the endpoint index register. it can be any value other than the value assigned to the dma endpoint register. in this example, do not assign 3h to the endpoint index register. see remark in section 10.6.1 . 2. assign dma endpoint register = 3h 3. assign dma command register = 0fh 4. assign dma endpoint register = 3h 5. assign dma command register = 0fh for example, to clear a double buffer data out endpoint 1, set the following registers in the ?rmware as: 1. assign a value to the dma endpoint register. it can be any value other than the value assigned to the endpoint index register. in this example, do not assign 2h to the dma endpoint register. see remark in section 10.6.1 . 2. assign endpoint index register = 2h 3. assign control function register = 10fh 4. assign endpoint index register = 2h 5. assign control function register = 10fh 10.4 differences between the isp1761 and isp1582 peripheral controllers this section explains the variations between the isp1761 and isp1582 peripheral controllers in terms of register bits and their associated functions. 10.4.1 isp1761 initialization registers ? the isp1582 supports 16-bit bus access. the register addresses are 2 bytes aligned. the isp1761 supports 16-bit and 32-bit bus accesses. to support the 32-bit access, the data_bus_width bit in the hw mode control register must be initialized. ep6tx programmable yes programmable in ep7rx programmable yes programmable out ep7tx programmable yes programmable in table 96. endpoint access and programmability continued endpoint identi?er maximum packet size double buffering endpoint type direction
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 103 of 163 nxp semiconductors isp1761 hi-speed usb otg controller ? in 32-bit bus access mode, the register addresses are 4 bytes aligned. therefore, the dcbufferstatus register can be accessed using the upper-two bytes of the buffer length register. ? the softct bit in the mode register has been removed. the dp_pullup control bit in the otg control register is used in the isp1761 in place of the softct bit in the isp1582. ? added the interrupt pulse width register to de?ne the pulse width of the interrupt signal. 10.4.2 isp1761 dma ? dma mode 1 and dma mode 2 in the isp1582 are not supported in the isp1761. ? in dma mode 0, counter mode is supported and external-eot mode has been removed. ? supports the 16-bit and 32-bit dma. does not support the 8-bit dma. ? the rd_n and wr_n signals are available for the dma data strobe. these signals are also used as data strobe signals during the pio access. an internal multiplex will redirect these signals to the dma controller for the dma transfer or to registers for the pio access. for details on the dma programming, refer to application note ref . 7 isp1761 p er ipher al dma initialization (an10040) . 10.4.3 isp1761 peripheral suspend indication ? a high level on the dc_suspend/wakeup_n pin indicates that the peripheral has entered suspend mode. the pulse indication mode has been removed. 10.4.4 isp1761 interrupt and dma common mode in common mode, the interrupt and dma signals of the peripheral controller are redirected to pins that are used by the host controller because the host controller and the peripheral controller share the same pins. some control bits must be set in the hw mode control register, see section 8.3.1 . 10.5 peripheral controller-speci?c registers table 97. peripheral controller-speci?c register overview address register reset value references initialization registers 0200h address 00h section 10.5.1 on page 104 020ch mode 0000h section 10.5.2 on page 105 0210h interrupt con?guration fch section 10.5.3 on page 106 0212h debug 0008h section 10.5.4 on page 107 0214h dcinterruptenable 0000 0000h section 10.5.5 on page 108 0300h hw mode control 0000 0000h section 8.3.1 on page 43 0374h otg control 0000 0086h section 9.5.2.1 on page 93 data ?ow registers 022ch endpoint index 20h section 10.6.1 on page 109
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 104 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 10.5.1 address register this register sets the usb assigned address and enables the usb peripheral. t ab le 98 shows the bit allocation of the register. the devaddr[6:0] bits will be cleared whenever a bus reset, a power-on reset or a soft reset occurs. the deven bit will be cleared whenever a power-on reset or a soft reset occurs, and will remain unchanged on a bus reset. in response to standard usb request set_address, ?rmware must write the (enabled) peripheral address to the address register, followed by sending an empty packet to the host. the new peripheral address is activated when the peripheral receives acknowledgment from the host for the empty packet token. 0228h control function 00h section 10.6.2 on page 110 0220h data port 0000 0000h section 10.6.3 on page 112 021ch buffer length 0000h section 10.6.4 on page 112 021eh dcbufferstatus 00h section 10.6.5 on page 113 0204h endpoint maxpacketsize 0000h section 10.6.6 on page 114 0208h endpoint type 0000h section 10.6.7 on page 114 dma registers 0230h dma command ffh section 10.7.1 on page 116 0234h dma transfer counter 0000 0000h section 10.7.2 on page 117 0238h dcdmacon?guration 0001h section 10.7.3 on page 118 023ch dma hardware 04h section 10.7.4 on page 119 0250h dma interrupt reason 0000h section 10.7.5 on page 120 0254h dma interrupt enable 0000h section 10.7.6 on page 121 0258h dma endpoint 00h section 10.7.7 on page 121 0264h dma burst counter 0004h section 10.7.8 on page 122 general registers 0218h dcinterrupt 0000 0000h section 10.8.1 on page 123 0270h dcchipid 0015 8210h section 10.8.2 on page 125 0274h frame number 0000h section 10.8.3 on page 125 0278h dcscratch 0000h section 10.8.4 on page 125 027ch unlock device 0000h section 10.8.5 on page 126 0280h interrupt pulse width 001eh section 10.8.6 on page 126 0284h test mode 00h section 10.8.7 on page 127 table 97. peripheral controller-speci?c register overview continued address register reset value references table 98. address register (address 0200h) bit allocation bit 7 6 5 4 3 2 1 0 symbol deven devaddr[6:0] reset 0 0000000 bus reset unchanged 0000000 access r/w r/w r/w r/w r/w r/w r/w r/w
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 105 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 10.5.2 mode register this register consists of 2 bytes (bit allocation: see t ab le 100 ). the mode register controls resume, suspend and wake-up behavior, interrupt activity, soft reset and clock signals. [1] the reserved bits should always be written with the reset value. table 99. address register (address 0200h) bit description bit symbol description 7 deven device enable : logic 1 enables the device. the device will not respond to the host, unless this bit is set. 6 to 0 devaddr[6:0] device address : this ?eld speci?es the usb device peripheral. table 100. mode register (address 020ch) bit allocation bit 15 14 13 12 11 10 9 8 symbol reserved [1] dmaclk on vbusstat reset 00000000 bus reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 7 6 5 4 3 2 1 0 symbol clkaon sndrsu gosusp sfreset glintena wkupcs reserved [1] reset 00000000 bus reset 0000 unchanged 0 0 unchanged access r/w r/w r/w r/w r/w r/w r/w r/w table 101. mode register (address 020ch) bit description bit symbol description 15 to 10 - reserved 9 dmaclkon dma clock on : 1 supply clock to the dma circuit. 0 power saving mode. the dma circuit will stop completely to save power. 8 vbusstat v bus status : this bit re?ects the v bus pin status. when implementing a pure host or peripheral, the otg_disable bit in the otg control register (374h) must be set to logic 1 so that the vbusstat bit is updated with the correct value. 7 clkaon clock always on : 1 enable the clock-always-on feature 0 disable the clock-always-on feature when the clock-always-on feature is disabled, a gosusp event can stop the clock. the clock is stopped after a delay of approximately 2 ms. therefore, the peripheral controller will consume less power. if the clock-always-on feature is enabled, clocks are always running and the gosusp event is unable to stop the clock while the peripheral controller enters the suspend state.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 106 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 10.5.3 interrupt con?guration register this 1 byte register determines the behavior and polarity of the int output. the bit allocation is shown in t ab le 102 . when the usb sie receives or generates an ack, nak or nyet, it will generate interrupts depending on three debug mode ?elds. cdbgmod[1:0] interrupts for the control endpoint 0 ddbgmodin[1:0] interrupts for the data in endpoints 1 to 7 ddbgmodout[1:0] interrupts for the data out endpoints 1 to 7 the debug mode settings for cdbgmod, ddbgmodin and ddbgmodout allow you to individually con?gure when the isp1761 sends an interrupt to the external microprocessor. t ab le 104 lists the available combinations. bit intpol controls the signal polarity of the int output: active high or low, rising or falling edge. for level-triggering, bit intlvl must be made logic 0. by setting intlvl to logic 1, an interrupt will generate a pulse of 60 ns (edge-triggering). 6 sndrsu send resume : writing logic 1, followed by logic 0 will generate an upstream resume signal of 10 ms duration, after a 5 ms delay. 5 gosusp go suspend : writing logic 1, followed by logic 0 will activate suspend mode. 4 sfreset soft reset : writing logic 1, followed by logic 0 will enable a software-initiated reset to the isp1761. a soft reset is similar to a hardware-initiated reset using the reset_n pin. 3 glintena global interrupt enable : logic 1 enables all interrupts. individual interrupts can be masked by clearing the corresponding bits in the dcinterruptenable register. when this bit is not set, an unmasked interrupt will not generate an interrupt trigger on the interrupt pin. if the global interrupt, however, is enabled while there is any pending unmasked interrupt, an interrupt signal will immediately be generated on the interrupt pin. if the interrupt is set to pulse mode, the interrupt events that were generated before the global interrupt is enabled may be dropped. 2 wkupcs wake up on chip select : logic 1 enables wake-up through a valid register read on the isp1761. a read will invoke the chip clock to restart. a write to the register before the clock is stable may cause malfunctioning. 1 to 0 - reserved table 101. mode register (address 020ch) bit description continued bit symbol description table 102. interrupt con?guration register (address 0210h) bit allocation bit 7 6 5 4 3 2 1 0 symbol cdbgmod[1:0] ddbgmodin[1:0] ddbgmodout[1:0] intlvl intpol reset 11111100 bus reset 111111 unchanged unchanged access r/w r/w r/w r/w r/w r/w r/w r/w
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 107 of 163 nxp semiconductors isp1761 hi-speed usb otg controller [1] first nak: the ?rst nak on an in or out token after a previous ack response. 10.5.4 debug register this register can be accessed using address 0212h in 16-bit bus access mode or using the upper-two bytes of the interrupt con?guration register in 32-bit bus access mode. for the bit allocation, see t ab le 105 . [1] the reserved bits should always be written with the reset value. table 103. interrupt con?guration register (address 0210h) bit description bit symbol description 7 to 6 cdbgmod[1:0] control 0 debug mode : for values, see t ab le 104 5 to 4 ddbgmodin[1:0] data debug mode in : for values, see t ab le 104 3 to 2 ddbgmodout[1:0] data debug mode out : for values, see t ab le 104 1 intlvl interrupt level : selects signaling mode on output int: 0 = level; 1 = pulsed. in pulsed mode, an interrupt produces a 60 ns pulse. bus reset value: unchanged. 0 intpol interrupt polarity : selects the signal polarity on output int: 0 = active low; 1 = active high. bus reset value: unchanged. table 104. debug mode settings value cdbgmod ddbgmodin ddbgmodout 00h interrupt on all ack and nak interrupt on all ack and nak interrupt on all ack, nyet and nak 01h interrupt on all ack interrupt on ack interrupt on ack and nyet 1xh interrupt on all ack and ?rst nak [1] interrupt on all ack and ?rst nak [1] interrupt on all ack, nyet and ?rst nak [1] table 105. debug register (address 0212h) bit allocation bit 15 14 13 12 11 10 9 8 symbol reserved [1] reset 00000000 bus reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 7 6 5 4 3 2 1 0 symbol reserved [1] debug reset 00001000 bus reset 00001000 access r/w r/w r/w r/w r/w r/w r/w r/w table 106. debug register (address 0212h) bit allocation bit symbol description 15 to 1 - reserved 0 debug always set this bit to logic 0 in both 16-bit and 32-bit accesses.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 108 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 10.5.5 dcinterruptenable register this register enables or disables individual interrupt sources. the interrupt for each endpoint can individually be controlled through the associated iepnrx or iepntx bits, here n represents the endpoint number. all interrupts can globally be disabled through bit glintena in the mode register (see t ab le 100 ). an interrupt is generated when the usb sie receives or generates an ack or nak on the usb bus. the interrupt generation depends on debug mode settings of bit ?elds cdbgmod[1:0], ddbgmodin[1:0] and ddbgmodout[1:0]. all data in transactions use the transmit buffers (tx) that are handled by ddbgmodin bits. all data out transactions go through the receive buffers (rx) that are handled by ddbgmodout bits. transactions on control endpoint 0 (in, out and setup) are handled by cdbgmod bits. interrupts caused by events on the usb bus (sof, suspend, resume, bus reset, set up and high-speed status) can also be individually controlled. a bus reset disables all enabled interrupts, except bit iebrst (bus reset) that remains unchanged. the dcinterruptenable register consists of 4 bytes. the bit allocation is given in t ab le 107 . [1] the reserved bits should always be written with the reset value. table 107. dcinterruptenable - device controller interrupt enable register (address 0214h) bit allocation bit 31 30 29 28 27 26 25 24 symbol reserved [1] iep7tx iep7rx reset 00000000 bus reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 23 22 21 20 19 18 17 16 symbol iep6tx iep6rx iep5tx iep5rx iep4tx iep4rx iep3tx iep3rx reset 00000000 bus reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 15 14 13 12 11 10 9 8 symbol iep2tx iep2rx iep1tx iep1rx iep0tx iep0rx reserved [1] iep0setup reset 0000000 0 bus reset 0000000 0 access r/w r/w r/w r/w r/w r/w r/w r/w bit 7 6 5 4 3 2 1 0 symbol ievbus iedma iehs_sta ieresm iesusp iepsof iesof iebrst reset 00000000 bus reset 0000000 unchanged access r/w r/w r/w r/w r/w r/w r/w r/w
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 109 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 10.6 data ?ow registers 10.6.1 endpoint index register the endpoint index register selects a target endpoint for register access by the microcontroller. the register consists of 1 byte, and the bit allocation is shown in t ab le 109 . the following registers are indexed: ? buffer length ? dcbufferstatus ? control function ? data port table 108. dcinterruptenable - device controller interrupt enable register (address 0214h) bit description bit symbol description 31 to 26 - reserved 25 ep7tx logic 1 enables interrupt from the indicated endpoint. 24 ep7rx logic 1 enables interrupt from the indicated endpoint. 23 ep6tx logic 1 enables interrupt from the indicated endpoint. 22 ep6rx logic 1 enables interrupt from the indicated endpoint. 21 ep5tx logic 1 enables interrupt from the indicated endpoint. 20 ep5rx logic 1 enables interrupt from the indicated endpoint. 19 ep4tx logic 1 enables interrupt from the indicated endpoint. 18 ep4rx logic 1 enables interrupt from the indicated endpoint. 17 ep3tx logic 1 enables interrupt from the indicated endpoint. 16 ep3rx logic 1 enables interrupt from the indicated endpoint. 15 ep2tx logic 1 enables interrupt from the indicated endpoint. 14 ep2rx logic 1 enables interrupt from the indicated endpoint. 13 ep1tx logic 1 enables interrupt from the indicated endpoint. 12 iep1rx logic 1 enables interrupt from the indicated endpoint. 11 iep0tx logic 1 enables interrupt from the control in endpoint 0. 10 iep0rx logic 1 enables interrupt from the control out endpoint 0. 9 - reserved 8 iep0setup logic 1 enables interrupt for the set-up data received on endpoint 0. 7 ievbus logic 1 enables interrupt for v bus sensing. 6 iedma logic 1 enables interrupt on detecting a dma status change. 5 iehs_sta logic 1 enables interrupt on detecting a high-speed status change. 4 ieresm logic 1 enables interrupt on detecting a resume state. 3 iesusp logic 1 enables interrupt on detecting a suspend state. 2 iepsof logic 1 enables interrupt on detecting a pseudo sof. 1 iesof logic 1 enables interrupt on detecting an sof. 0 iebrst logic 1 enables interrupt on detecting a bus reset.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 110 of 163 nxp semiconductors isp1761 hi-speed usb otg controller ? endpoint maxpacketsize ? endpoint type for example, to access the out data buffer of endpoint 1 using the data port register, the endpoint index register must be written ?rst with 02h. remark: the endpoint index register and the dma endpoint register must not point to the same endpoint, irrespective of in and out. [1] the reserved bits should always be written with the reset value. 10.6.2 control function register the control function register performs the buffer management on endpoints. it consists of 1 byte, and the bit con?guration is given in t ab le 112 . the register bits can stall, clear or validate any enabled data endpoint. before accessing this register, the endpoint index register must ?rst be written to specify the target endpoint. table 109. endpoint index register (address 022ch) bit allocation bit 7 6 5 4 3 2 1 0 symbol reserved [1] ep0setup endpidx[3:0] dir reset 00 100000 bus reset 00 100000 access r/w r/w r/w r/w r/w r/w r/w r/w table 110. endpoint index register (address 022ch) bit description bit symbol description 7 to 6 - reserved 5 ep0setup endpoint 0 set up : selects the setup buffer for endpoint 0. 0 data buffer 1 setup buffer must be logic 0 for access to endpoints other than set-up token buffer. 4 to 1 endpidx[3:0] endpoint index : selects the target endpoint for register access of buffer length, buffer status, control function, data port, endpoint type and maxpacketsize. 0 dir direction bit : sets the target endpoint as in or out. 0 target endpoint refers to out (rx) fifo 1 target endpoint refers to in (tx) fifo table 111. addressing of endpoint buffers buffer name ep0setup endpidx dir setup 1 00h 0 control out 0 00h 0 control in 0 00h 1 data out 0 0xh 0 data in 0 0xh 1
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 111 of 163 nxp semiconductors isp1761 hi-speed usb otg controller [1] the reserved bits should always be written with the reset value. table 112. control function register (address 0228h) bit allocation bit 7 6 5 4 3 2 1 0 symbol reserved [1] clbuf vendp dsen status stall reset 00000000 bus reset 00000000 access r/w r/w r/w r/w r/w w r/w r/w table 113. control function register (address 0228h) bit description bit symbol description 7 to 5 - reserved 4 clbuf clear buffer : logic 1 clears the rx buffer of the indexed endpoint; the tx buffer is not affected. the rx buffer is automatically cleared once the endpoint is completely read. this bit is set only when it is necessary to forcefully clear the buffer. remark: if using double buffer, to clear both the buffers issue the clbuf command two times, that is, set and clear this bit two times. 3 vendp validate endpoint : logic 1 validates data in the tx fifo of an in endpoint for sending on the next in token. in general, the endpoint is automatically validated when its fifo byte count has reached the endpoint maxpacketsize. this bit is set only when it is necessary to validate the endpoint with the fifo byte count that is below the endpoint maxpacketsize. 2 dsen data stage enable : this bit controls the response of the isp1761 to a control transfer. after the completion of the set-up stage, ?rmware must determine whether a data stage is required. for control out, ?rmware will set this bit and the isp1761 goes into the data stage. otherwise, the isp1761 will nak the data stage transfer. for control in, ?rmware will set this bit before writing data to the tx fifo and validate the endpoint. if no data stage is required, ?rmware can immediately set the status bit after the set-up stage. remark: the dsen bit is cleared once the out token is acknowledged by the device and the in token is acknowledged by the pc host. this bit cannot be read back and reading this bit will return logic 0. 1 status status acknowledge : only applicable for control in and out. this bit controls the generation of ack or nak during the status stage of a setup transfer. it is automatically cleared when the status stage is completed and a setup token is received. no interrupt signal will be generated. 0 sends nak 1 sends an empty packet following the in token (peripheral-to-host) or ack following the out token (host-to-peripheral) remark: the status bit is cleared to zero once the zero-length packet is acknowledged by the device or the pc host. remark: data transfers preceding the status stage must ?rst be fully completed before the status bit can be set. 0 stall stall endpoint : logic 1 stalls the indexed endpoint. this bit is not applicable for isochronous transfers. remark: stalling a data endpoint will confuse the data toggle bit about the stalled endpoint because the internal logic picks up from where it is stalled. therefore, the data toggle bit must be reset by disabling and re-enabling the corresponding endpoint (by setting bit enable to logic 0, followed by logic 1 in the endpoint type register) to reset the pid.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 112 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 10.6.3 data port register this register provides direct access for a microcontroller to the fifo of the indexed endpoint. peripheral to host (in endpoint) : after each write, an internal counter is automatically incremented, by two in 16-bit mode and four in 32-bit mode, to the next location in the tx fifo. when all bytes have been written (fifo byte count = endpoint maxpacketsize), the buffer is automatically validated. the data packet will then be sent on the next in token. whenever required, the control function register (bit vendp) can validate the endpoint whose byte count is less than maxpacketsize. remark: the buffer can automatically be validated using the buffer length register. host to peripheral (out endpoint) : after each read, an internal counter is automatically decremented, by two in 16-bit mode and four in 32-bit mode, to the next location in the rx fifo. when all bytes have been read, the buffer contents are automatically cleared. a new data packet can then be received on the next out token. buffer contents can also be cleared through the control function register (bit clbuf), whenever it is necessary to forcefully clear contents. the data port register description when the isp1761 is in 32-bit mode is given in t ab le 114 . the data port register description when the isp1761 is in 16-bit mode is given in t ab le 115 . 10.6.4 buffer length register this register determines the current packet size (datacount) of the indexed endpoint fifo. the bit description is given in t ab le 116 . the buffer length register is automatically loaded with the fifo size, when the endpoint maxpacketsize register is written (see t ab le 120 ). a smaller value can be written when required. after a bus reset, the buffer length register is made zero. in endpoint : when the data transfer is performed in multiples of maxpacketsize, the buffer length register is not signi?cant. this register is useful only when transferring data that is not a multiple of maxpacketsize. the following two examples demonstrate the signi?cance of the buffer length register. example 1: consider that the transfer size is 512 bytes and the maxpacketsize is programmed as 64 bytes, the buffer length register need not be ?lled. this is because the transfer size is a multiple of maxpacketsize, and maxpacketsize packets will be automatically validated because the last packet is also of maxpacketsize. table 114. data port register (address 0220h) bit description bit symbol access value description 31 to 0 dataport [31:0] r/w 0000 0000h data port : a 500 ns delay starting from the reception of the endpoint interrupt may be required for the ?rst read from the data port. table 115. data port register (address 0220h) bit description bit symbol access value description 15 to 0 dataport [15:0] r/w 0000 0000h data port : a 500 ns delay starting from the reception of the endpoint interrupt may be required for the ?rst read from the data port.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 113 of 163 nxp semiconductors isp1761 hi-speed usb otg controller example 2: consider that the transfer size is 510 bytes and the maxpacketsize is programmed as 64 bytes, the buffer length register should be ?lled with 62 bytes just before the microcontroller writes the last packet of 62 bytes. this ensures that the last packet, which is a short packet of 62 bytes, is automatically validated. use the vendp bit in the control register if you are not using the buffer length register. this is applicable only to pio mode access. out endpoint : the datacount value is automatically initialized to the number of data bytes sent by the host on each ack. remark: when using a 16-bit microprocessor bus, the last byte of an odd-sized packet is output as the lower byte (lsbyte). 10.6.5 dcbufferstatus register this register is accessed using an index. the endpoint index must ?rst be set before accessing this register for the corresponding endpoint. it re?ects the status of the endpoint fifo. t ab le 117 shows the bit allocation of the dcbufferstatus register. remark: this register is not applicable to the control endpoint. remark: for the endpoint in data transfer, ?rmware must ensure a 200 ns delay between writing of the data packet and reading the dcbufferstatus register. for the endpoint out data transfer, ?rmware must also ensure a 200 ns delay between the reception of the endpoint interrupt and reading the dcbufferstatus register. for more information, refer to ref . 10 isp1760/1 f requently ask ed questions (an10054) . [1] the reserved bits should always be written with the reset value. table 116. buffer length register (address 021ch) bit description bit symbol access value description 15 to 0 datacount [15:0] r/w 0000h data count : determines the current packet size of the indexed endpoint fifo. table 117. dcbufferstatus - device controller buffer status register (address 021eh) bit allocation bit 7 6 5 4 3 2 1 0 symbol reserved [1] buf1 buf0 reset 00000000 bus reset 00000000 access r/w r/w r/w r/w r/w r/w r r table 118. dcbufferstatus - device controller buffer status register (address 021eh) bit description bit symbol description 7 to 2 - reserved 1 to 0 buf[1:0] buffer : 00 the buffers are not ?lled. 01 one of the buffers is ?lled. 10 one of the buffers is ?lled. 11 both the buffers are ?lled.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 114 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 10.6.6 endpoint maxpacketsize register this register determines the maximum packet size for all endpoints, except control 0. the register contains 2 bytes, and the bit allocation is given in t ab le 119 . each time the register is written, the buffer length register of the corresponding endpoint is re-initialized to the ffosz ?eld value. ntrans bits control the number of transactions allowed in a single microframe for high-speed isochronous and interrupt endpoints only. [1] the reserved bits should always be written with the reset value. the isp1761 supports all the transfers given in ref . 1 univ ersal ser ial bus speci? cation re v . 2.0 . each programmable fifo can be independently con?gured using its endpoint maxpacketsize register (r/w: 04h), but the total physical size of all enabled endpoints (in plus out), including set-up token buffer, control in and control out, must not exceed 8192 bytes. 10.6.7 endpoint type register this register sets the endpoint type of the indexed endpoint: isochronous, bulk or interrupt. it also serves to enable the endpoint and con?gure it for double buffering. automatic generation of an empty packet for a zero-length tx buffer can be disabled using bit noempkt. the register contains 2 bytes. see t ab le 121 . table 119. endpoint maxpacketsize register (address 0204h) bit allocation bit 15 14 13 12 11 10 9 8 symbol reserved [1] ntrans[1:0] ffosz[10:8] reset 00000000 bus reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 7 6 5 4 3 2 1 0 symbol ffosz[7:0] reset 00000000 bus reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w table 120. endpoint maxpacketsize register (address 0204h) bit description bit symbol description 15 to 13 - reserved 12 to 11 ntrans[1:0] number of transactions : hs mode only. 00 one packet per microframe 01 two packets per microframe 10 three packets per microframe 11 reserved these bits are applicable only for isochronous or interrupt transactions. 10 to 0 ffosz[10:0] fifo size : sets the fifo size, in bytes, for the indexed endpoint. applies to both high-speed and full-speed operations.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 115 of 163 nxp semiconductors isp1761 hi-speed usb otg controller [1] the reserved bits should always be written with the reset value. 10.7 dma registers the generic dma (gdma) transfer can be done by writing the proper opcode in the dma command register. the control bits are given in t ab le 123 . gdma read or write (opcode = 00h/01h) for generic dma slave mode the gdma (slave) can operate in counter mode. rd_n and wr_n are dma data strobe signals. these signals are also used as data strobe signals during the pio access. an internal multiplex will redirect these signals to the dma controller for the dma transfer or to registers for the pio access. table 121. endpoint type register (address 0208h) bit allocation bit 15 14 13 12 11 10 9 8 symbol reserved [1] reset 00000000 bus reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 7 6 5 4 3 2 1 0 symbol reserved [1] noempkt enable dblbuf endptyp[1:0] reset 00000000 bus reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w table 122. endpoint type register (address 0208h) bit description bit symbol description 15 to 5 - reserved 4 noempkt no empty packet : logic 0 causes the isp1761 to return a null length packet for the in token after the dma in transfer is complete. set to logic 1 to disable the generation of the null length packet. 3 enable endpoint enable : logic 1 enables the fifo of the indexed endpoint. the memory size is allocated as speci?ed in the endpoint maxpacketsize register. logic 0 disables the fifo. remark: stalling a data endpoint will confuse the data toggle bit on the stalled endpoint because the internal logic picks up from where it has stalled. therefore, the data toggle bit must be reset by disabling and re-enabling the corresponding endpoint (by setting bit enable to logic 0, followed by logic 1 in the endpoint type register) to reset the pid. 2 dblbuf double buffering : logic 1 enables double buffering for the indexed endpoint. logic 0 disables double buffering. 1 to 0 endptyp[1:0] endpoint type : these bits select the endpoint type as follows. 00 not used 01 isochronous 10 bulk 11 interrupt
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 116 of 163 nxp semiconductors isp1761 hi-speed usb otg controller in counter mode, the dis_xfer_cnt bit in the dcdmacon?guration register must be set to logic 0. the dma transfer counter register must be programmed before any dma command is issued. the dma transfer counter is set by writing from the lsbyte to the msbyte (address: 234h to 237h). the dma transfer count is internally updated only after the msbyte is written. once the dma transfer is started, the transfer counter starts decrementing and on reaching 0, the dma_xfer_ok bit is set and an interrupt is generated by the isp1761. the dma transfer starts once the dma command is issued. any of the following three ways will terminate this dma transfer: ? detecting an internal eot (short packet on an out token) ? resetting the dma ? gdma stop command there are two interrupts that are programmable to differentiate the method of dma termination: the int_eot and dma_xfer_ok bits in the dma interrupt reason register. for details, see t ab le 135 . remark: the dma bus defaults to 3-state, until a dma command is executed. all the other control signals are not 3-state. 10.7.1 dma command register the dma command register is a 1-byte register (for bit allocation, see t ab le 124 ) that initiates all dma transfer activities on the dma controller. the register is write-only: reading it will return ffh. remark: the dma bus will be in 3-state until a dma command is executed. table 123. control bits for gdma read or write (opcode = 00h/01h) control bits description reference mode register dmaclkon set dmaclkon to logic 1 t ab le 101 dcdmacon?guration register mode[1:0] determines the active read or write data strobe signals t ab le 130 width selects the dma bus width: 16-bit or 32-bit dis_xfer_cnt disables the use of the dma transfer counter dma hardware register dack_pol, dreq_pol select the polarity of the dma handshake signals t ab le 132 table 124. dma command register (address 0230h) bit allocation bit 7 6 5 4 3 2 1 0 symbol dma_cmd[7:0] reset 11111111 bus reset 11111111 access wwwwwwww
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 117 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 10.7.2 dma transfer counter register this 4 bytes register sets up the total byte count for a dma transfer (dmacr). it indicates the remaining number of bytes left for transfer. the bit allocation is given in t ab le 127 . for in endpoint because there is a fifo in the isp1761 dma controller, some data may remain in the fifo during the dma transfer. the maximum fifo size is 8 bytes, and the maximum delay time for the data to be shifted to endpoint buffer is 60 ns. for out endpoint data will not be cleared for the endpoint buffer, until all the data has been read from the dma fifo. table 125. dma command register (address 0230h) bit description bit symbol description 7 to 0 dma_cmd[7:0] dma command code; see t ab le 126 . table 126. dma commands code name description 00h gdma read generic dma in token transfer : data is transferred from the external dma bus to the internal buffer. 01h gdma write generic dma out token transfer : data is transferred from the internal buffer to the external dma bus. 02h to 0dh - reserved 0eh validate buffer validate buffer (for debugging only) : request from the microcontroller to validate the endpoint buffer, following a dma-to-usb data transfer. 0fh clear buffer clear buffer : request from the microcontroller to clear the endpoint buffer, after a dma-to-usb data transfer. logic 1 clears the tx buffer of the indexed endpoint; the rx buffer is not affected. the tx buffer is automatically cleared once data is sent on the usb bus. this bit is set only when it is necessary to forcefully clear the buffer. remark: if using double buffer, to clear both the buffers issue the clear buffer command two times, that is, set and clear this bit two times. 10h - reserved 11h reset dma reset dma : initializes the dma core to its power-on reset state. remark: when the dma core is reset during the reset dma command, the dreq, dack, rd_n and wr_n handshake pins will temporarily be asserted. this can confuse the external dma controller. to prevent this, start the external dma controller only after the dma reset. 12h - reserved 13h gdma stop gdma stop : this command stops the gdma data transfer. any data in the out endpoint that is not transferred by the dma will remain in the buffer. the fifo data for the in endpoint will be written to the endpoint buffer. an interrupt bit will be set to indicate that the dma stop command is complete. 14h to ffh - reserved
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 118 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 10.7.3 dcdmacon?guration register this register de?nes the dma con?guration for gdma mode. the dcdmacon?guration register consists of 2 bytes. the bit allocation is given in t ab le 129 . table 127. dma transfer counter register (address 0234h) bit allocation bit 31 30 29 28 27 26 25 24 symbol dmacr4 = dmacr[31:24] reset 00000000 bus reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 23 22 21 20 19 18 17 16 symbol dmacr3 = dmacr[23:16] reset 00000000 bus reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 15 14 13 12 11 10 9 8 symbol dmacr2 = dmacr[15:8] reset 00000000 bus reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 7 6 5 4 3 2 1 0 symbol dmacr1 = dmacr[7:0] reset 00000000 bus reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w table 128. dma transfer counter register (address 0234h) bit description bit symbol description 31 to 24 dmacr4, dmacr[31:24] dma counter 4 : dma transfer counter byte 4 23 to 16 dmacr3, dmacr[23:16] dma counter 3 : dma transfer counter byte 3 15 to 8 dmacr2, dmacr[15:8] dma counter 2 : dma transfer counter byte 2 7 to 0 dmacr1, dmacr[7:0] dma counter 1 : dma transfer counter byte 1 table 129. dcdmacon?guration - device controller direct memory access con?guration register (address 0238h) bit allocation bit 15 14 13 12 11 10 9 8 symbol reserved [1] reset 00000000 bus reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 119 of 163 nxp semiconductors isp1761 hi-speed usb otg controller [1] the reserved bits should always be written with the reset value. 10.7.4 dma hardware register the dma hardware register consists of 1 byte. the bit allocation is shown in t ab le 131 . this register determines the polarity of bus control signals (dack and dreq). [1] the reserved bits should always be written with the reset value. bit 7 6 5 4 3 2 1 0 symbol dis_ xfer_cnt reserved [1] mode[1:0] reserved width reset 00000001 bus reset 00000001 access r/w r/w r/w r/w r/w r/w r/w r/w table 130. dcdmacon?guration - device controller direct memory access con?guration register (address 0238h) bit description bit symbol description 15 to 8 - reserved 7 dis_xfer_cnt disable transfer counter : write logic 0 to perform dma operation. logic 1 disables the dma transfer counter (see t ab le 127 ). 6 to 4 - reserved 3 to 2 mode[1:0] mode : 00 wr_n slave strobes data from the dma bus into the isp1761; rd_n slave puts data from the isp1761 on the dma bus 01, 10, 11 reserved 1 - reserved 0 width width : this bit selects the dma bus width for gdma. 0 32-bit data bus 1 16-bit data bus table 131. dma hardware register (address 023ch) bit allocation bit 7 6 5 4 3 2 1 0 symbol reserved [1] dack_ pol dreq_ pol reserved [1] reset 00000100 bus reset 00000100 access r/w r/w r/w r/w r/w r/w r/w r/w
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 120 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 10.7.5 dma interrupt reason register this 2-byte register shows the source(s) of dma interrupt. each bit is refreshed after a dma command is executed. an interrupt source is cleared by writing logic 1 to the corresponding bit. on detecting the interrupt, the external microprocessor must read the dma interrupt reason register and mask it with the corresponding bits in the dma interrupt enable register to determine the source of the interrupt. the bit allocation is given in t ab le 133 . [1] the reserved bits should always be written with the reset value. table 132. dma hardware register (address 023ch) bit description bit symbol description 7 to 4 - reserved 3 dack_pol dack polarity : selects the dma acknowledgment polarity. 0 dack is active low 1 dack is active high 2 dreq_pol dreq polarity : selects the dma request polarity. 0 dreq is active low 1 dreq is active high 1 to 0 - reserved table 133. dma interrupt reason register (address 0250h) bit allocation bit 15 14 13 12 11 10 9 8 symbol reserved gdma_ stop reserved int_eot reserved [1] dma_ xfer_ok reset 00000000 bus reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 7 6 5 4 3 2 1 0 symbol reserved [1] reset 00000000 bus reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w table 134. dma interrupt reason register (address 0250h) bit description bit symbol description 15 to 13 - reserved 12 gdma_stop gdma stop : when the gdma_stop command is issued to dma command registers, it means that the dma transfer has successfully terminated. 11 - reserved 10 int_eot internal eot : logic 1 indicates that an internal eot is detected; see t ab le 135 .
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 121 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 10.7.6 dma interrupt enable register this 2 bytes register controls the interrupt generation of the source bits in the dma interrupt reason register. the bit allocation is given in t ab le 136 . the bit description is given in t ab le 134 . logic 1 enables the interrupt generation. the values after a (bus) reset are logic 0 (disabled). [1] the reserved bits should always be written with the reset value. 10.7.7 dma endpoint register this 1 byte register selects a usb endpoint fifo as the source or destination for dma transfers. the bit allocation is given in t ab le 137 . 9 - reserved 8 dma_xfer_ok dma transfer ok : logic 1 indicates that the dma transfer has been completed, that is, dma transfer counter has become zero. 7 to 0 - reserved table 135. internal eot-functional relation with the dma_xfer_ok bit int_eot dma_xfer_ok description 1 0 during the dma transfer, there is a premature termination with short packet. 1 1 dma transfer is completed with a short packet and the dma transfer counter has reached 0. 0 1 dma transfer is completed without any short packet and the dma transfer counter has reached 0. table 134. dma interrupt reason register (address 0250h) bit description continued bit symbol description table 136. dma interrupt enable register (address 0254h) bit allocation bit 15 14 13 12 11 10 9 8 symbol reserved [1] ie_gdma_ stop reserved [1] ie_int_ eot reserved [1] ie_dma_ xfer_ok reset 00000000 bus reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 7 6 5 4 3 2 1 0 symbol reserved [1] reset 00000000 bus reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w table 137. dma endpoint register (address 0258h) bit allocation bit 7 6 5 4 3 2 1 0 symbol reserved [1] epidx[2:0] dmadir
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 122 of 163 nxp semiconductors isp1761 hi-speed usb otg controller [1] the reserved bits should always be written with the reset value. the dma endpoint register must not reference the endpoint that is indexed by the endpoint index register (022ch) at any time. doing so will result in data corruption. therefore, if the dma endpoint register is unused, point it to an unused endpoint. if the dma endpoint register, however, is pointed to an active endpoint, the ?rmware must not reference the same endpoint on the endpoint index register. 10.7.8 dma burst counter register the bit allocation of the register is given in t ab le 139 . [1] the reserved bits should always be written with the reset value. reset 00000000 bus reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w table 137. dma endpoint register (address 0258h) bit allocation continued bit 7 6 5 4 3 2 1 0 table 138. dma endpoint register (address 0258h) bit description bit symbol description 7 to 4 - reserved 3 to 1 epidx[2:0] selects the indicated endpoint for dma access 0 dmadir dma direction : 0 selects the rx/out fifo for dma write transfers 1 selects the tx/in fifo for dma read transfers table 139. dma burst counter register (address 0264h) bit allocation bit 15 14 13 12 11 10 9 8 symbol reserved [1] burstcounter[12:8] reset 00000000 bus reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 7 6 5 4 3 2 1 0 symbol burstcounter[7:0] reset 00000100 bus reset 00000100 access r/w r/w r/w r/w r/w r/w r/w r/w
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 123 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 10.8 general registers 10.8.1 dcinterrupt register the dcinterrupt register consists of 4 bytes. the bit allocation is given in t ab le 141 . when a bit is set in the dcinterrupt register, it indicates that the hardware condition for an interrupt has occurred. when the dcinterrupt register content is non-zero, the int output will be asserted. on detecting the interrupt, the external microprocessor must read the dcinterrupt register to determine the source of the interrupt. each endpoint buffer has a dedicated interrupt bit (epntx, epnrx). in addition, various bus states can generate an interrupt: resume, suspend, pseudo sof, sof and bus reset. the dma controller has only one interrupt bit: the source for a dma interrupt is shown in the dma interrupt reason register. each interrupt bit can individually be cleared by writing logic 1. the dma interrupt bit can be cleared by writing logic 1 to the related interrupt source bit in the dma interrupt reason register and writing logic 1 to the dma bit of the dcinterrupt register. table 140. dma burst counter register (address 0264h) bit description bit symbol description 15 to 13 - reserved 12 to 0 burst counter[12:0] burst counter : this register de?nes the burst length. the counter must be programmed to be a multiple of two in 16-bit mode and four in 32-bit mode. the value of the burst counter must be programmed so that the buffer counter is a factor of the burst counter. in 16-bit mode, dreq will drop at every dma read or write cycle when the burst counter equals 2. in 32-bit mode, dreq will drop at every dma read or write cycle when the burst counter equals 4. table 141. dcinterrupt - device controller interrupt register (address 0218h) bit allocation bit 31 30 29 28 27 26 25 24 symbol reserved [1] ep7tx ep7rx reset 00000000 bus reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 23 22 21 20 19 18 17 16 symbol ep6tx ep6rx ep5tx ep5rx ep4tx ep4rx ep3tx ep3rx reset 00000000 bus reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w bit 15 14 13 12 11 10 9 8 symbol ep2tx ep2rx ep1tx ep1rx ep0tx ep0rx reserved [1] ep0setup reset 00000000 bus reset 00000000 access r/w r/w r/w r/w r/w r/w r/w r/w
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 124 of 163 nxp semiconductors isp1761 hi-speed usb otg controller [1] the reserved bits should always be written with the reset value. bit 7 6 5 4 3 2 1 0 symbol vbus dma hs_stat resume susp psof sof breset reset 00000000 bus reset 0000000 unchanged access r/w r/w r/w r/w r/w r/w r/w r/w table 142. dcinterrupt - device controller interrupt register (address 0218h) bit description bit symbol description 31 to 26 - reserved 25 ep7tx logic 1 indicates the endpoint 7 tx buffer as interrupt source. 24 ep7rx logic 1 indicates the endpoint 7 rx buffer as interrupt source. 23 ep6tx logic 1 indicates the endpoint 6 tx buffer as interrupt source. 22 ep6rx logic 1 indicates the endpoint 6 rx buffer as interrupt source. 21 ep5tx logic 1 indicates the endpoint 5 tx buffer as interrupt source. 20 ep5rx logic 1 indicates the endpoint 5 rx buffer as interrupt source. 19 ep4tx logic 1 indicates the endpoint 4 tx buffer as interrupt source. 18 ep4rx logic 1 indicates the endpoint 4 rx buffer as interrupt source. 17 ep3tx logic 1 indicates the endpoint 3 tx buffer as interrupt source. 16 ep3rx logic 1 indicates the endpoint 3 rx buffer as interrupt source. 15 ep2tx logic 1 indicates the endpoint 2 tx buffer as interrupt source. 14 ep2rx logic 1 indicates the endpoint 2 rx buffer as interrupt source. 13 ep1tx logic 1 indicates the endpoint 1 tx buffer as interrupt source. 12 ep1rx logic 1 indicates the endpoint 1 rx buffer as interrupt source. 11 ep0tx logic 1 indicates the endpoint 0 data tx buffer as interrupt source. 10 ep0rx logic 1 indicates the endpoint 0 data rx buffer as interrupt source. 9 - reserved 8 ep0setup logic 1 indicates that a setup token was received on endpoint 0. 7 vbus logic 1 indicates a transition from low to high on v bus . when implementing a pure host or peripheral, the otg_disable bit in the otg control register (374h) must be set to logic 1 so that the vbus bit is updated with the correct value. 6 dma dma status : logic 1 indicates a change in the dma interrupt reason register. 5 hs_stat high-speed status : logic 1 indicates a change from full-speed to high-speed mode (hs connection). this bit is not set when the system goes into the full-speed suspend. 4 resume resume status : logic 1 indicates that a status change from suspend to resume (active) was detected. 3 susp suspend status : logic 1 indicates that a status change from active to suspend was detected on the bus.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 125 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 10.8.2 dcchipid register this read-only register contains the chip identi?cation and hardware version numbers. the ?rmware must check this information to determine functions and features supported. the register contains 3 bytes, and the bit allocation is shown in t ab le 143 . 10.8.3 frame number register this read-only register contains the frame number of the last successfully received start-of-frame (sof). the register contains 2 bytes, and the bit allocation is given in t ab le 144 . 10.8.4 dcscratch register this 16-bit register can be used by the ?rmware to save and restore information. for example, the device status before it enters the suspend state; see t ab le 146 . 2 psof pseudo sof interrupt : logic 1 indicates that a pseudo sof or m sof was received. pseudo sof is an internally generated clock signal (full-speed: 1 ms period, high-speed: 125 m s period) that is not synchronized to the usb bus sof or m sof. 1 sof sof interrupt : logic 1 indicates that a sof or m sof was received. 0 breset bus reset : logic 1 indicates that a usb bus reset was detected. table 142. dcinterrupt - device controller interrupt register (address 0218h) bit description continued bit symbol description table 143. dcchipid - device controller chip identi?er register (address 0270h) bit description bit symbol access value description 31 to 0 chipid[31:0] r 0015 8210h chip id : this registers represents the hardware version number (0015h) and the chip id (8210h) for the peripheral controller. table 144. frame number register (address 0274h) bit allocation bit 15 14 13 12 11 10 9 8 symbol reserved microsof[2:0] sofr[10:8] reset 00000000 bus reset 00000000 access rrrrrrrr bit 7 6 5 4 3 2 1 0 symbol sofr[7:0] reset 00000000 bus reset 00000000 access rrrrrrrr table 145. frame number register (address 0274h) bit description bit symbol description 15 to 14 - reserved 13 to 11 microsof[2:0] microframe number 10 to 0 sofr[10:0] frame number
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 126 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 10.8.5 unlock device register to protect registers from getting corrupted when the isp1761 goes into suspend, the write operation is disabled. in this case, when the chip resumes, the unlock device command must ?rst be issued to this register before attempting to write to the rest of the registers. this is done by writing unlock code (aa37h) to this register. the bit allocation of the unlock device register is given in t ab le 148 . 10.8.6 interrupt pulse width register t ab le 150 shows the bit description of the register. table 146. dcscratch - device controller scratch register (address 0278h) bit allocation bit 15 14 13 12 11 10 9 8 symbol sfirh[7:0] reset 00000000 bus reset unchanged access r/w r/w r/w r/w r/w r/w r/w r/w bit 7 6 5 4 3 2 1 0 symbol sfirl[7:0] reset 00000000 bus reset unchanged access r/w r/w r/w r/w r/w r/w r/w r/w table 147. dcscratch - device controller scratch register (address 0278h) bit description bit symbol description 15 to 8 sfirh[7:0] scratch ?rmware information register (higher byte) 7 to 0 sfirl[7:0] scratch ?rmware information register (lower byte) table 148. unlock device register (address 027ch) bit allocation bit 15 14 13 12 11 10 9 8 symbol ulcode[15:8] = aah reset not applicable bus reset not applicable access wwwwwwww bit 7 6 5 4 3 2 1 0 symbol ulcode[7:0] = 37h reset not applicable bus reset not applicable access wwwwwwww table 149. unlock device register (address 027ch) bit description bit symbol description 15 to 0 ulcode[15:0] unlock code : writing data aa37h unlocks internal registers and fifos for writing, following a resume.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 127 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 10.8.7 test mode register this 1 byte register allows the ?rmware to set the dp and dm pins to predetermined states for testing purposes. the bit allocation is given in t ab le 151 . remark: only one bit can be set to logic 1 at a time. [1] the reserved bits should always be written with the reset value. [1] either forcehs or forcefs must be set at a time. [2] of the four bits, prbs, kstate, jstate and se0_nak, only one bit must be set at a time. table 150. interrupt pulse width register (address 0280h) bit description bit symbol access value description 15 to 0 intr_pulse_ width[15:0] r/w 001eh interrupt pulse width : the interrupt signal pulse width is con?gurable while it is in pulse signaling mode. the minimum pulse width is 3.33 ns when this register is set to logic 1. the power-on reset value of 1eh allows a pulse of 1 m s to be generated. table 151. test mode register (address 0284h) bit allocation bit 7 6 5 4 3 2 1 0 symbol forcehs reserved [1] forcefs prbs kstate jstate se0_nak reset 00000000 bus reset unchanged 0 0 unchanged 0000 access r/w r/w r/w r/w r/w r/w r/w r/w table 152. test mode register (address 0284h) bit description bit symbol description 7 forcehs force high-speed : logic 1 [1] forces the hardware to high-speed mode only and disables the chirp detection logic. 6 to 5 - reserved. 4 forcefs force full-speed : logic 1 [1] forces the physical layer to full-speed mode only and disables the chirp detection logic. 3 prbs logic 1 [2] sets pins dp and dm to toggle in a predetermined random pattern. 2 kstate k state : writing logic 1 [2] sets the dp and dm pins to the k state. 1 j s tat e j state : writing logic 1 [2] sets the dp and dm pins to the j state. 0 se0_nak se0 nak : writing logic 1 [2] sets pins dp and dm to a high-speed quiescent state. the device only responds to a valid high-speed in token with a nak.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 128 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 11. power consumption the idle operating current, i cc , that is, when the isp1761 is in operational mode, initialized and without any devices connected, is 70 ma. the additional current consumption on i cc is below 1 ma per port in the case of full-speed and low-speed devices. deep-sleep suspend mode ensures the lowest power consumption when v cc is always supplied to the isp1761. in this case, the suspend current, i cc(susp) , is typically about 150 m a at ambient temperature of +25 c. the suspend current may increase if the ambient temperature increases. for details, see section 7.6 . in hybrid mode, when v cc is disconnected i cc(i/o) will generally be below 100 m a. the average value is 60 m a to 70 m a. under the condition of constant read and write accesses occurring on the 32-bit data bus, the maximum i cc(i/o) drawn from v cc(i/o) is measured as 25 ma, when the nxp isp1761 evaluation board is connected to a bsquare pxa255 development platform. this current will vary depending on the platform because of the different access timing, the type of data patterns written on the data bus, and loading on the data bus. table 153. power consumption number of ports working i cc one port working (high-speed) v cc = 5.0 v, v cc(i/o) = 3.3 v 90 ma v cc = 3.3 v, v cc(i/o) = 3.3 v 77 ma v cc = 5.0 v, v cc(i/o) = 1.8 v 82 ma v cc = 3.3 v, v cc(i/o) = 1.8 v 77 ma two ports working (high-speed) v cc = 5.0 v, v cc(i/o) = 3.3 v 110 ma v cc = 3.3 v, v cc(i/o) = 3.3 v 97 ma v cc = 5.0 v, v cc(i/o) = 1.8 v 102 ma v cc = 3.3 v, v cc(i/o) = 1.8 v 97 ma three ports working (high-speed) v cc = 5.0 v, v cc(i/o) = 3.3 v 130 ma v cc = 3.3 v, v cc(i/o) = 3.3 v 117 ma v cc = 5.0 v, v cc(i/o) = 1.8 v 122 ma v cc = 3.3 v, v cc(i/o) = 1.8 v 117 ma
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 129 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 12. limiting values 13. recommended operating conditions [1] for details, see figure 17 and figure 18 . [2] deep sleep suspend current. table 154. limiting values in accordance with the absolute maximum rating system (iec 60134). symbol parameter conditions min max unit v cc(i/o) input/output supply voltage - 0.5 +4.6 v v cc(5v0) supply voltage - 0.5 +5.6 v v cc(c_in) supply voltage - 4.6 v i lu latch-up current v i < 0 v or v i > v cc - 100 ma v esd electrostatic discharge voltage i li < 1 m a (all pins) - 4000 +4000 v t stg storage temperature - 40 +125 c table 155. recommended operating conditions symbol parameter conditions min typ max unit v cc(i/o) input/output supply voltage v cc(i/o) = 3.3 v 3.0 3.3 3.6 v v cc(i/o) = 1.8 v 1.65 1.8 1.95 v v cc(5v0) supply voltage 3 - 5.5 v v cc(c_in) supply voltage [1] 3.15 - 3.6 v t amb ambient temperature - 40 - +85 c t j junction temperature - 40 - +125 c i cc(susp) suspend supply current t amb = 25 c; v cc(5v0) = 3.3 v [2] - 150 - m a
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 130 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 14. static characteristics [1] includes oc1_n/v bus , oc2_n and oc3_n when used as digital overcurrent pins. table 156. static characteristics: digital pins all digital pins [1] , except pins id, psw1_n, psw2_n, psw3_n and bat_on_n. t amb = - 40 c to +85 c; unless otherwise speci?ed. symbol parameter conditions min typ max unit v cc(i/o) = 1.65 v to 1.95 v v ih high-level input voltage 1.2 - - v v il low-level input voltage - - 0.5 v v hys hysteresis voltage 0.4 - 0.7 v v ol low-level output voltage i ol = 3 ma - - 0.22v cc(i/o) v v oh high-level output voltage 0.8v cc(i/o) -- v i li input leakage current v i = 0 v to v cc(i/o) --1 m a c in input capacitance - 2.75 - pf v cc(i/o) = 3.0 v to 3.6 v v ih high-level input voltage 2.0 - - v v il low-level input voltage - - 0.8 v v hys hysteresis voltage 0.4 - 0.7 v v ol low-level output voltage i ol = 3 ma - - 0.4 v v oh high-level output voltage 2.4 - - v i li input leakage current v i = 0 v to v cc(i/o) --1 m a c in input capacitance - 2.75 - pf table 157. static characteristics: psw1_n, psw2_n, psw3_n v cc(i/o) = 1.65 v to 3.6 v; t amb = - 40 c to +85 c; unless otherwise speci?ed. symbol parameter conditions min typ max unit v ol low-level output voltage i ol = 8 ma; pull-up to v cc(5v0) - - 0.4 v v oh high-level output voltage pull-up to v cc(i/o) -v cc(i/o) -v table 158. static characteristics: usb interface block (pins dm1 to dm3 and dp1 to dp3) v cc(i/o) = 1.65 v to 3.6 v; t amb = - 40 c to +85 c; unless otherwise speci?ed. symbol parameter conditions min typ max unit input levels for high-speed v hssq high-speed squelch detection threshold voltage (differential signal amplitude) squelch detected - - 100 mv no squelch detected 150 - - mv v hsdsc high-speed disconnect detection threshold voltage (differential signal amplitude) disconnect detected 625 - - mv disconnect not detected - - 525 mv v hscm high-speed data signaling common mode voltage range (guideline for receiver) - 50 - +500 mv
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 131 of 163 nxp semiconductors isp1761 hi-speed usb otg controller [1] the hs termination resistor is disabled, and the pull-up resistor is connected. only during reset, when both the hub and the device are capable of the high-speed operation. [1] minimum trigger voltage at extreme low temperature ( - 40 c). [2] minimum trigger voltage at extreme high temperature (+85 c). output levels for high-speed v hsoi high-speed idle level voltage - 10 - +10 mv v hsoh high-speed data signaling high-level voltage 360 - 440 mv v hsol high-speed data signaling low-level voltage - 10 - +10 mv v chirpj chirp j level (differential voltage) 700 [1] - 1100 mv v chirpk chirp k level (differential voltage) - 900 [1] - - 500 mv input levels for full-speed and low-speed v ih high-level input voltage drive 2.0 - - v v ihz high-level input voltage (?oating) 2.7 - 3.6 v v il low-level input voltage - - 0.8 v v di differential input sensitivity | v dp - v dm | 0.2 - - v v cm differential common mode voltage range 0.8 - 2.5 v output levels for full-speed and low-speed v oh high-level output voltage 2.8 - 3.6 v v ol low-level output voltage 0 - 0.3 v v ose1 se1 output voltage 0.8 - - v v crs output signal crossover voltage 1.3 - 2.0 v table 158. static characteristics: usb interface block (pins dm1 to dm3 and dp1 to dp3) continued v cc(i/o) = 1.65 v to 3.6 v; t amb = - 40 c to +85 c; unless otherwise speci?ed. symbol parameter conditions min typ max unit table 159. static characteristics: ref5v v cc(i/o) = 1.65 v to 3.6 v; t amb = - 40 c to +85 c; unless otherwise speci?ed. symbol parameter conditions min typ max unit v ih high-level input voltage - 5 - v table 160. static characteristics: v bus comparators v cc(i/o) = 1.65 v to 3.6 v; t amb = - 40 c to +85 c; unless otherwise speci?ed. symbol parameter conditions min [1] typ max [2] unit v a_vbus_vld a-device v bus valid voltage 4.4 4.5 4.6 v v b_sess_vld b-device session valid voltage for a-device and b-device 0.8 1.6 2.0 v v hys(b_sess_vld) b-device session valid hysteresis voltage 70 150 210 mv v b_sess_end b-device session end voltage 0.2 0.5 0.8 v
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 132 of 163 nxp semiconductors isp1761 hi-speed usb otg controller table 161. static characteristics: v bus resistors v cc(i/o) = 1.65 v to 3.6 v; t amb = - 40 c to +85 c; unless otherwise speci?ed. symbol parameter conditions min typ max unit r up(vbus) pull-up resistance on pin v bus connect to reg3v3 when vbus_chrg = 1 281 680 - w r dn(vbus) pull-down resistance on pin v bus connect to ground when vbus_dischrg = 1 656 800 - w r i(idle)(vbus)(a) idle input resistance on pin v bus (a-device) id pin low 40 58.5 100 k w r i(idle)(vbus)(b) idle input resistance on pin v bus (b-device) id pin high - 197 280 k w fig 17. charge pump current versus voltage at various temperatures (worst case) fig 18. charge pump current versus voltage at various temperatures (typical case) 004aaa667 0 50 100 150 3 3.4 3.8 4.2 t amb = - 40 c 25 c 100 c i cp (ma) v cc(c_in) (v) 004aaa668 0 50 100 150 3 3.4 3.8 4.2 v cc(c_in) (v) i cp (ma) t amb = - 40 c 25 c 100 c
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 133 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 15. dynamic characteristics [1] recommended values for external capacitors when using a crystal are 22 pf to 27 pf. [2] recommended accuracy of the clock frequency is 50 ppm for the crystal and oscillator. the oscillator used depends on v cc(i/o) . table 162. dynamic characteristics: system clock timing v cc(i/o) = 1.65 v to 3.6 v; t amb = - 40 c to +85 c; unless otherwise speci?ed. symbol parameter conditions min typ max unit crystal oscillator f clk clock frequency crystal [1] [2] - 12 - mhz oscillator - 12 - mhz external clock input j external clock jitter - - 500 ps d clock duty cycle - 50 - % v i(xtal1) input voltage on pin xtal1 - v cc(i/o) -v t r rise time - - 3 ns t f fall time - - 3 ns table 163. dynamic characteristics: cpu interface block v cc(i/o) = 1.65 v to 3.6 v; t amb = - 40 c to +85 c; unless otherwise speci?ed. symbol parameter conditions min typ max unit sr slew rate standard load (rise, fall) 1 - 4 v/ns table 164. dynamic characteristics: high-speed source electrical characteristics v cc(i/o) = 1.65 v to 3.6 v; t amb = - 40 c to +85 c; unless otherwise speci?ed. symbol parameter conditions min typ max unit driver characteristics t hsr rise time (10 % to 90 %) 500 - - ps t hsf fall time (10 % to 90 %) 500 - - ps z hsdrv driver output impedance (which also serves as high-speed termination) includes the r s resistor 40.5 45 49.5 w clock timing t hsdrat high-speed data rate 479.76 - 480.24 mbit/s t hsfram microframe interval 124.9375 - 125.0625 m s t hsrfi consecutive microframe interval difference 1 - four high-speed bit times ns table 165. dynamic characteristics: full-speed source electrical characteristics v cc(i/o) = 1.65 v to 3.6 v; t amb = - 40 c to +85 c; unless otherwise speci?ed. symbol parameter conditions min typ max unit driver characteristics t fr rise time c l = 50 pf; 10 % to 90 % of | v oh - v ol | 4 - 20 ns t ff fall time c l = 50 pf; 90 % to 10 % of | v oh - v ol | 4 - 20 ns
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 134 of 163 nxp semiconductors isp1761 hi-speed usb otg controller t frfm differential rise and fall time matching 90 - 111.1 % z drv driver output impedance for driver which is not high-speed capable 28 - 44 w data timing: see figure 19 t fdeop source jitter for differential transition to se0 transition full-speed timing - 2 - +5 ns t feopt source se0 interval of eop 160 - 175 ns t feopr receiver se0 interval of eop 82 - - ns t ldeop upstream facing port source jitter for differential transition to se0 transition low-speed timing - 40 - +100 ns t leopt source se0 interval of eop 1.25 - 1.5 m s t leopr receiver se0 interval of eop 670 - - ns t fst width of se0 interval during differential transition --14ns table 165. dynamic characteristics: full-speed source electrical characteristics continued v cc(i/o) = 1.65 v to 3.6 v; t amb = - 40 c to +85 c; unless otherwise speci?ed. symbol parameter conditions min typ max unit table 166. dynamic characteristics: low-speed source electrical characteristics v cc(i/o) = 1.65 v to 3.6 v; t amb = - 40 c to +85 c; unless otherwise speci?ed. symbol parameter conditions min typ max unit driver characteristics t lr transition time: rise time 75 - 300 ns t lf transition time: fall time 75 - 300 ns t lrfm rise and fall time matching 90 - 125 % t period is the bit duration corresponding with the usb data rate. fig 19. usb source differential data-to-eop transition skew and eop width 004aaa929 t period differential data lines crossover point differential data to se0/eop skew n t period + t fdeop n t period + t ldeop source eop width: t feopt , t leopt receiver eop width: t feopr , t leopr crossover point extended +3.3 v 0 v
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 135 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 15.1 host timing 15.1.1 pio timing 15.1.1.1 register or memory write fig 20. register or memory write table 167. register or memory write t amb = - 40 c to +85 c; unless otherwise speci?ed. symbol parameter min max unit v cc(i/o) = 1.65 v to 1.95 v t h11 data hold after wr_n high 2 - ns t h21 cs_n hold after wr_n high 1 - ns t h31 address hold after wr_n high 2 - ns t w11 wr_n pulse width 17 - ns t su11 data set-up time before wr_n high 5 - ns t su21 address set-up time before wr_n high 5 - ns t su31 cs_n set-up time before wr_n high 5 - ns v cc(i/o) = 3.3 v to 3.6 v t h11 data hold after wr_n high 2 - ns t h21 cs_n hold after wr_n high 1 - ns t h31 address hold after wr_n high 2 - ns t w11 wr_n pulse width 17 - ns t su11 data set-up time before wr_n high 5 - ns t su21 address set-up time before wr_n high 5 - ns t su31 cs_n set-up time before wr_n high 5 - ns 004aaa527 address 01 a[17:1] address 02 cs_n data 01 data data 02 wr_n t h11 t h21 t h31 t w11 t su11 t su21 t su31
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 136 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 15.1.1.2 register read 15.1.1.3 register access fig 21. register read table 168. register read t amb = - 40 c to +85 c; unless otherwise speci?ed. symbol parameter min max unit v cc(i/o) = 1.65 v to 1.95 v t su12 address set-up time before rd_n low 0 - ns t su22 cs_n set-up time before rd_n low 0 - ns t w12 rd_n pulse width > t d12 -ns t d12 data valid time after rd_n low - 35 ns t d22 data valid time after rd_n high - 1 ns v cc(i/o) = 3.3 v to 3.6 v t su12 address set-up time before rd_n low 0 - ns t su22 cs_n set-up time before rd_n low 0 - ns t w12 rd_n pulse width > t d12 -ns t d12 data valid time after rd_n low - 22 ns t d22 data valid time after rd_n high - 1 ns 004aaa524 address 01 a[17:1] address 02 data cs_n rd_n t su12 t su22 t w12 t d12 t d22 fig 22. register access 004aaa983 wr_n rd_n cs_n t whrl t rhwl t rhrl t whwl
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 137 of 163 nxp semiconductors isp1761 hi-speed usb otg controller [1] for ehci operational registers, minimum value is 195 ns. 15.1.1.4 memory read table 169. register access t amb = - 40 c to +85 c; unless otherwise speci?ed. symbol parameter min max unit t whrl wr_n high to rd_n low time 25 [1] -ns t rhrl rd_n high to rd_n low time 25 [1] -ns t rhwl rd_n high to wr_n low time 25 - ns t whwl wr_n high to wr_n low time 25 [1] -ns fig 23. memory read table 170. memory read t amb = - 40 c to +85 c; unless otherwise speci?ed. symbol parameter min max unit v cc(i/o) = 1.65 v to 1.95 v t p13 initial pre-fetch time 90 - ns t cy13 memory rd_n cycle time 40 - ns t d13 data valid time after rd_n low - 31 ns t d23 data available time after rd_n high - 1 ns t w13 rd_n pulse width 32 - ns t su13 cs_n set-up time before rd_n low 0 - ns t su23 address set-up time before rd_n low 0 - ns v cc(i/o) = 3.3 v to 3.6 v t p13 initial pre-fetch time 90 - ns t cy13 memory rd_n cycle time 36 - ns t d13 data valid time after rd_n low - 20 ns t d23 data available time after rd_n high - 1 ns 004aaa523 address = 33c a[17:1] address 2 address 1 address 3 data data data 2 data 1 data 3 cs_n wr_n rd_n t p13 t d13 t w13 t su23 t su13 t cy13 t d23
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 138 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 15.1.2 dma timing in the following sections: ? polarity of dack is active high ? polarity of dreq is active high 15.1.2.1 single cycle: dma read t w13 rd_n pulse width 21 - ns t su13 cs_n set-up time before rd_n low 0 - ns t su23 address set-up time before rd_n low 0 - ns table 170. memory read continued t amb = - 40 c to +85 c; unless otherwise speci?ed. symbol parameter min max unit fig 24. dma read (single cycle) table 171. dma read (single cycle) t amb = - 40 c to +85 c; unless otherwise speci?ed. symbol parameter min max unit v cc(i/o) = 1.65 v to 1.95 v t a14 dack assertion time after dreq assertion 0 - ns t a24 rd_n assertion time after dack assertion 0 - ns t d14 data valid time after rd_n assertion - 24 ns t w14 rd_n pulse width > t d14 -ns t a34 dreq de-assertion time after rd_n assertion - 29 ns t a44 dack de-assertion to next dreq assertion time - 56 ns t h14 data hold time after rd_n de-asserts - 5 ns v cc(i/o) = 3.3 v to 3.6 v t a14 dack assertion time after dreq assertion 0 - ns t a24 rd_n assertion time after dack assertion 0 - ns t d14 data valid time after rd_n assertion - 20 ns t w14 rd_n pulse width > t d14 -ns 004aaa530 data dreq dack rd_n t a14 t a24 t d14 t w14 t a44 t a34 t h14
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 139 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 15.1.2.2 single cycle: dma write t a34 dreq de-assertion time after rd_n assertion - 18 ns t a44 dack de-assertion to next dreq assertion time - 56 ns t h14 data hold time after rd_n de-asserts - 5 ns table 171. dma read (single cycle) continued t amb = - 40 c to +85 c; unless otherwise speci?ed. symbol parameter min max unit dreq and dack are active high. fig 25. dma write (single cycle) table 172. dma write (single cycle) t amb = - 40 c to +85 c; unless otherwise speci?ed. symbol parameter min max unit v cc(i/o) = 1.65 v to 1.95 v t a15 dack assertion time after dreq assertion 0 - ns t a25 wr_n assertion time after dack assertion 1 - ns t h15 data hold time after wr_n de-assertion 3 - ns t h25 dack hold time after wr_n de-assertion 0 - ns t su15 data set-up time before wr_n de-assertion 5.5 - ns t a35 dreq de-assertion time after wr_n assertion - 28 ns t cy15 last dack strobe de-assertion to next dreq assertion time -82ns t w15 wr_n pulse width 22 - ns v cc(i/o) = 3.3 v to 3.6 v t a15 dack assertion time after dreq assertion 0 - ns t a25 wr_n assertion time after dack assertion 1 - ns t h15 data hold time after wr_n de-assertion 2 - ns t h25 dack hold time after wr_n de-assertion 0 - ns t su15 data set-up time before wr_n de-assertion 5.5 - ns t a35 dreq de-assertion time after wr_n assertion - 16 ns t cy15 last dack strobe de-assertion to next dreq assertion time -82ns t w15 wr_n pulse width 22 - ns 004aaa525 data data data 1 dreq wr_n dack t a15 t a25 t h15 t h25 t su15 t a35 t cy15 t w15
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 140 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 15.1.2.3 multi-cycle: dma read dreq and dack are active high. fig 26. dma read (multi-cycle burst) table 173. dma read (multi-cycle burst) t amb = - 40 c to +85 c; unless otherwise speci?ed. symbol parameter min max unit v cc(i/o) = 1.65 v to 1.95 v t a16 dack assertion after dreq assertion 0 - ns t a26 rd_n assertion after dack assertion 0 - ns t d16 data valid time after rd_n assertion - 31 ns t w16 rd_n pulse width 38 - ns t cy16 read-to-read cycle time 46 - ns t a36 dreq de-assertion time after last burst rd_n de-assertion -30ns t a46 dack de-assertion to next dreq assertion time - 82 ns t h16 data hold time after rd_n de-asserts - 5 ns v cc(i/o) = 3.3 v to 3.6 v t a16 dack assertion after dreq assertion 0 - ns t a26 rd_n assertion after dack assertion 0 - ns t d16 data valid time after rd_n assertion - 16 ns t w16 rd_n pulse width 17 - ns t cy16 read-to-read cycle time 38 - ns t a36 dreq de-assertion time after last burst rd_n de-assertion -20ns t a46 dack de-assertion to next dreq assertion time - 82 ns t h16 data hold time after rd_n de-asserts - 5 ns dreq t a36 dack rd_n 004aaa531 data 0 data data n-1 data 1 data n t a16 t a26 t d16 t w16 t cy16 t a46 t h16
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 141 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 15.1.2.4 multi-cycle: dma write fig 27. dma write (multi-cycle burst) table 174. dma write (multi-cycle burst) t amb = - 40 c to +85 c; unless otherwise speci?ed. symbol parameter min max unit v cc(i/o) = 1.65 v to 1.95 v t cy17 dma write cycle time 51 - ns t su17 data set-up time before wr_n de-assertion 5 - ns t h17 data hold time after wr_n de-assertion 2 - ns t a17 dack assertion time after dreq assertion 0 - ns t a27 wr_n assertion time after dack assertion 2 - ns t a37 dreq de-assertion time at last strobe (wr_n) assertion -28ns t h27 dack hold time after wr_n de-assertion 0 - ns t a47 strobe de-assertion to next strobe assertion time 34 - ns t w17 wr_n pulse width 17 - ns t a57 dack de-assertion to next dreq assertion time - 82 ns v cc(i/o) = 3.3 v to 3.6 v t cy17 dma write cycle time 51 - ns t su17 data set-up time before wr_n de-assertion 5 - ns t h17 data hold time after wr_n de-assertion 2 - ns t a17 dack assertion time after dreq assertion 0 - ns t a27 wr_n assertion time after dack assertion 1 - ns t a37 dreq de-assertion time at last strobe (wr_n) assertion -16ns t h27 dack hold time after wr_n de-assertion 0 - ns t a47 strobe de-assertion to next strobe assertion time 34 - ns t w17 wr_n pulse width 17 - ns t a57 dack de-assertion to next dreq assertion time - 82 ns 004aaa526 data 1 data data n-1 data 2 data n wr_n dreq dack t cy17 t su17 t h17 t a17 t a27 t a37 t h27 t a47 t w17 t a57
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 142 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 15.2 peripheral timing 15.2.1 pio timing 15.2.1.1 pio register read or write fig 28. isp1761 register access timing: separate address and data buses (8051 style) (write) data[31:0] (read) data[31:0] 004aaa529 ad[17:1] t d58 t su28 t su38 t d28 t su18 t h28 t h18 t d18 t h38 wr_n cs_n rd_n t d38 t w18 t w28 t d68 t d48 table 175. pio register read or write t amb = - 40 c to +85 c; unless otherwise speci?ed. symbol parameter min max unit v cc(i/o) = 1.65 v to 1.95 v reading t w18 rd_n low pulse width > t d18 -ns t su18 address set-up time before rd_n low 0 - ns t h18 address hold time after rd_n high 0 - ns t d18 rd_n low to data valid delay - 33 ns t d28 rd_n high to data outputs 3-state delay - 1 ns t d38 rd_n high to cs_n high delay 0 - ns t d48 cs_n low to rd_n low delay 0 - ns writing t w28 wr_n low pulse width 15 - ns t su28 address set-up time before wr_n low 0 - ns t h28 address hold time after wr_n high 0 - ns t su38 data set-up time before wr_n high 5 - ns t h38 data hold time after wr_n high 2 - ns t d58 wr_n high to cs_n high delay 1 - ns
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 143 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 15.2.1.2 pio register access [1] for the data port register, the minimum value is 25 ns. t d68 cs_n low to wr_n low delay 0 - ns v cc(i/o) = 3.3 v to 3.6 v reading t w18 rd_n low pulse width > t d18 -ns t su18 address set-up time before rd_n low 0 - ns t h18 address hold time after rd_n high 0 - ns t d18 rd_n low to data valid delay - 21 ns t d28 rd_n high to data outputs 3-state delay 0 1 ns t d38 rd_n high to cs_n high delay 0 - ns t d48 cs_n low to rd_n low delay 0 - ns writing t w28 wr_n low pulse width 15 - ns t su28 address set-up time before wr_n low 0 - ns t h28 address hold time after wr_n high 1 - ns t su38 data set-up time before wr_n high 5 - ns t h38 data hold time after wr_n high 2 - ns t d58 wr_n high to cs_n high delay 1 - ns t d68 cs_n low to wr_n low delay 0 - ns table 175. pio register read or write continued t amb = - 40 c to +85 c; unless otherwise speci?ed. symbol parameter min max unit fig 29. pio register access table 176. register access t amb = - 40 c to +85 c; unless otherwise speci?ed. symbol parameter min max unit t whrl wr_n high to rd_n low time 86 - ns t rhwl rd_n high to wr_n low time 86 - ns t whwl wr_n high to wr_n low time 86 [1] -ns t rhrl rd_n high to rd_n low time 86 [1] -ns 004aaa984 wr_n rd_n cs_n t whrl t rhwl t whwl t rhrl
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 144 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 15.2.2 dma timing 15.2.2.1 dma read or write dreq is continuously asserted until the last transfer is done or the fifo is full. data strobes: rd_n (read) and wr_n (write). (1) programmable polarity: shown as active low. (2) programmable polarity: shown as active high. fig 30. dma read or write t h19 t w19 t su19 t d19 t su29 t d29 t h29 t cy19 (write) data [31 :0 ] (read) data [31 :0 ] dreq (2) dack (1) rd_n/wr_n 004aaa528 t su39 t w29 t a19 t h39 table 177. dma read or write t amb = - 40 c to +85 c; unless otherwise speci?ed. symbol parameter min max unit v cc(i/o) = 1.65 v to 1.95 v t cy19 read or write cycle time 75 - ns t su19 dreq set-up time before ?rst dack on 10 - ns t d19 dreq on delay after last strobe off 33.33 - ns t h19 dreq hold time after last strobe on 0 53 ns t w19 rd_n/wr_n pulse width 40 600 ns t w29 rd_n/wr_n recovery time 36 - ns t d29 read data valid delay after strobe on - 30 ns t h29 read data hold time after strobe off - 5 ns t h39 write data hold time after strobe off 1 - ns t su29 write data set-up time before strobe off 10 - ns t su39 dack set-up time before rd_n/wr_n assertion 0 - ns t a19 dack de-assertion after rd_n/wr_n de-assertion 3- ns v cc(i/o) = 3.3 v to 3.6 v t cy19 read or write cycle time 75 - ns t su19 dreq set-up time before ?rst dack on 10 - ns t d19 dreq on delay after last strobe off 33.33 - ns
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 145 of 163 nxp semiconductors isp1761 hi-speed usb otg controller t h19 dreq hold time after last strobe on 0 53 ns t w19 rd_n/wr_n pulse width 39 600 ns t w29 rd_n/wr_n recovery time 36 - ns t d29 read data valid delay after strobe on - 20 ns t h29 read data hold time after strobe off - 5 ns t h39 write data hold time after strobe off 1 - ns t su29 write data set-up time before strobe off 10 - ns t su39 dack set-up time before rd_n/wr_n assertion 0 - ns t a19 dack de-assertion after rd_n/wr_n de-assertion 3- ns table 177. dma read or write continued t amb = - 40 c to +85 c; unless otherwise speci?ed. symbol parameter min max unit
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 146 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 16. package outline fig 31. package outline sot425-1 (lqfp128) unit a 1 a 2 a 3 b p ce (1) eh e ll p z y w v q references outline version european projection issue date iec jedec jeita mm 0.15 0.05 1.45 1.35 0.25 0.27 0.17 0.20 0.09 14.1 13.9 0.5 16.15 15.85 0.81 0.59 7 0 o o 0.12 0.2 0.1 1 dimensions (mm are the original dimensions) note 1. plastic or metal protrusions of 0.25 mm maximum per side are not included. 0.75 0.45 sot425-1 136e28 ms-026 00-01-19 03-02-20 d (1) (1) (1) 20.1 19.9 h d 22.15 21.85 e z 0.81 0.59 d 0 5 10 mm scale b p e q e a 1 a l p detail x l (a ) 3 b c b p e h a 2 d h v m b d z d a z e e v m a x 102 103 y w m w m a max. 1.6 lqfp128: plastic low profile quad flat package; 128 leads; body 14 x 20 x 1.4 mm sot425-1 65 64 38 39 1 128 pin 1 index
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 147 of 163 nxp semiconductors isp1761 hi-speed usb otg controller fig 32. package outline sot857-1 (tfbga128) references outline version european projection issue date iec jedec jeita sot857-1 mo-195 sot857-1 04-05-05 04-06-22 dimensions (mm are the original dimensions) tfbga128: plastic thin fine-pitch ball grid array package; 128 balls; body 9 x 9 x 0.8 mm a detail x a 2 a 1 b ball a1 index area ball a1 index area d e b c a a b c d e f h k g l j m n p r t 246810121416 13579111315 e 2 e 1 e e 1/2 e 1/2 e a c b ? v m c ? w m y c y 1 x 0 2.5 5 mm scale unit mm 0.25 0.15 0.85 0.75 0.35 0.25 9.1 8.9 a 1 a 2 b e 9.1 8.9 d ee 1 v 0.15 7.5 e 2 7.5 0.5 w 0.05 y 0.08 y 1 0.1 a max 1.1
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 148 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 17. soldering of smd packages this text provides a very brief insight into a complex technology. a more in-depth account of soldering ics can be found in application note an10365 surface mount re?ow soldering description . 17.1 introduction to soldering soldering is one of the most common methods through which packages are attached to printed circuit boards (pcbs), to form electrical circuits. the soldered joint provides both the mechanical and the electrical connection. there is no single soldering method that is ideal for all ic packages. wave soldering is often preferred when through-hole and surface mount devices (smds) are mixed on one printed wiring board; however, it is not suitable for ?ne pitch smds. re?ow soldering is ideal for the small pitches and high densities that come with increased miniaturization. 17.2 wave and re?ow soldering wave soldering is a joining technology in which the joints are made by solder coming from a standing wave of liquid solder. the wave soldering process is suitable for the following: ? through-hole components ? leaded or leadless smds, which are glued to the surface of the printed circuit board not all smds can be wave soldered. packages with solder balls, and some leadless packages which have solder lands underneath the body, cannot be wave soldered. also, leaded smds with leads having a pitch smaller than ~0.6 mm cannot be wave soldered, due to an increased probability of bridging. the re?ow soldering process involves applying solder paste to a board, followed by component placement and exposure to a temperature pro?le. leaded packages, packages with solder balls, and leadless packages are all re?ow solderable. key characteristics in both wave and re?ow soldering are: ? board speci?cations, including the board ?nish, solder masks and vias ? package footprints, including solder thieves and orientation ? the moisture sensitivity level of the packages ? package placement ? inspection and repair ? lead-free soldering versus snpb soldering 17.3 wave soldering key characteristics in wave soldering are: ? process issues, such as application of adhesive and ?ux, clinching of leads, board transport, the solder wave parameters, and the time during which components are exposed to the wave ? solder bath speci?cations, including temperature and impurities
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 149 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 17.4 re?ow soldering key characteristics in re?ow soldering are: ? lead-free versus snpb soldering; note that a lead-free re?ow process usually leads to higher minimum peak temperatures (see figure 33 ) than a snpb process, thus reducing the process window ? solder paste printing issues including smearing, release, and adjusting the process window for a mix of large and small components on one board ? re?ow temperature pro?le; this pro?le includes preheat, re?ow (in which the board is heated to the peak temperature) and cooling down. it is imperative that the peak temperature is high enough for the solder to make reliable solder joints (a solder paste characteristic). in addition, the peak temperature must be low enough that the packages and/or boards are not damaged. the peak temperature of the package depends on package thickness and volume and is classi?ed in accordance with t ab le 178 and 179 moisture sensitivity precautions, as indicated on the packing, must be respected at all times. studies have shown that small packages reach higher temperatures during re?ow soldering, see figure 33 . table 178. snpb eutectic process (from j-std-020c) package thickness (mm) package re?ow temperature ( c) volume (mm 3 ) < 350 3 350 < 2.5 235 220 3 2.5 220 220 table 179. lead-free process (from j-std-020c) package thickness (mm) package re?ow temperature ( c) volume (mm 3 ) < 350 350 to 2000 > 2000 < 1.6 260 260 260 1.6 to 2.5 260 250 245 > 2.5 250 245 245
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 150 of 163 nxp semiconductors isp1761 hi-speed usb otg controller for further information on temperature pro?les, refer to application note an10365 surface mount re?ow soldering description . 18. soldering of through-hole mount packages 18.1 introduction to soldering through-hole mount packages this text gives a very brief insight into wave, dip and manual soldering. wave soldering is the preferred method for mounting of through-hole mount ic packages on a printed-circuit board. 18.2 soldering by dipping or by solder wave driven by legislation and environmental forces the worldwide use of lead-free solder pastes is increasing. typical dwell time of the leads in the wave ranges from 3 seconds to 4 seconds at 250 c or 265 c, depending on solder material applied, snpb or pb-free respectively. the total contact time of successive solder waves must not exceed 5 seconds. the device may be mounted up to the seating plane, but the temperature of the plastic body must not exceed the speci?ed maximum storage temperature (t stg(max) ). if the printed-circuit board has been pre-heated, forced cooling may be necessary immediately after soldering to keep the temperature within the permissible limit. 18.3 manual soldering apply the soldering iron (24 v or less) to the lead(s) of the package, either below the seating plane or not more than 2 mm above it. if the temperature of the soldering iron bit is less than 300 c it may remain in contact for up to 10 seconds. if the bit temperature is between 300 c and 400 c, contact may be up to 5 seconds. msl: moisture sensitivity level fig 33. temperature pro?les for large and small components 001aac844 temperature time minimum peak temperature = minimum soldering temperature maximum peak temperature = msl limit, damage level peak temperature
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 151 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 18.4 package related soldering information [1] for sdip packages, the longitudinal axis must be parallel to the transport direction of the printed-circuit board. [2] for pmfp packages hot bar soldering or manual soldering is suitable. table 180. suitability of through-hole mount ic packages for dipping and wave soldering package soldering method dipping wave cpga, hcpga - suitable dbs, dip, hdip, rdbs, sdip, sil suitable suitable [1] pmfp [2] - not suitable
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 152 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 19. abbreviations table 181. abbreviations acronym description ack acknowledgment asic application-speci?c integrated circuit atl asynchronous transfer list atx analog transceiver cs complete split dma direct memory access dsc digital still camera dw double word ehci enhanced host controller interface emi electromagnetic interference eop end-of-packet eot end-of-transfer esd electrostatic discharge esr effective series resistance fifo first in, first out fs full-speed fls frame list size gdma generic dma gpio general-purpose input/output gps global positioning system hc host controller hnp host negotiation protocol hs high-speed itd isochronous transfer descriptor int interrupt iso isochronous isr interrupt service routine itl isochronous (iso) transfer list ls low-speed lsbyte least signi?cant byte msbyte most signi?cant byte nak not acknowledged nyet not yet oc overcurrent ohci open host controller interface otg on-the-go pci peripheral component interconnect pid packet identi?er pio programmed input/output
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 153 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 20. references [1] universal serial bus speci?cation rev. 2.0 [2] enhanced host controller interface speci?cation for universal serial bus rev. 1.0 [3] on-the-go supplement to the usb speci?cation rev. 1.3 [4] isp1582/83 control pipe (an10031) [5] interfacing the isp176x to the intel pxa25x processor (an10037) [6] isp1582/83 firmware programming guide (an10039) [7] isp1761 peripheral dma initialization (an10040) [8] isp176x linux programming guide (an10042) [9] embedded systems design with the isp176x (an10043) [10] isp1760/1 frequently asked questions (an10054) pll phase-locked loop pmos positive-channel metal-oxide semiconductor por power-on reset porp power-on reset pulse ptd philips transfer descriptor ram random access memory risc reduced instruction set computer se0 single ended 0 se1 single ended 1 sie serial interface engine sitd split isochronous transfer descriptor sof start-of-frame sram static random access memory srp session request protocol ss start split tt transaction translator uhci universal host controller interface usb universal serial bus table 181. abbreviations continued acronym description
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 154 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 21. revision history table 182. revision history document id release date data sheet status change notice supersedes isp1761_5 20080313 product data sheet - isp1761_4 modi?cations: ? changed mini-a, mini-b and mini-ab to micro-a, micro-b and micro-ab, respectively. ? changed on-the-go supplement to the usb speci?cation from rev. 1.2 to rev. 1.3. ? t ab le 52 p o w er do wn control register (address 0354h) bit descr iption : updated description for bits 12 and 11. ? section 9.4.3 hnp implementation and o tg state machine : updated the third last paragraph. ? section 10.1.1.3 dma initialization : updated the second paragraph. ? t ab le 101 mode register (address 020ch) bit descr iption : updated description for bit 8. ? section 10.6.2 control function register : updated bit 2 access and description. ? t ab le 117 dcbuff erstatus - de vice controller buff er status register (address 021eh) bit allocation : updated access type for bits 1 and 0 from r/w to r. ? t ab le 142 dcinterr upt - de vice controller interr upt register (address 0218h) bit descr iption : updated description for bit 7. ? t ab le 154 limiting v alues : updated the conditions column of v esd . ? t ab le 160 static char acter istics: v b us compar ators : added t ab le note 1 and t ab le note 2 . isp1761_4 20070305 product data sheet - isp1761_3 isp1761_3 20061127 product data sheet - isp1761_2 isp1761_2 (9397 750 15191) 20051005 product data sheet - isp1761_1 isp1761_1 (9397 750 13258) 20050112 product data sheet - -
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 155 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 22. legal information 22.1 data sheet status [1] please consult the most recently issued document before initiating or completing a design. [2] the term short data sheet is explained in section de?nitions. [3] the product status of device(s) described in this document may have changed since this document was published and may differ in case of multiple dev ices. the latest product status information is available on the internet at url http://www .nxp .com . 22.2 de?nitions draft the document is a draft version only. the content is still under internal review and subject to formal approval, which may result in modi?cations or additions. nxp semiconductors does not give any representations or warranties as to the accuracy or completeness of information included herein and shall have no liability for the consequences of use of such information. short data sheet a short data sheet is an extract from a full data sheet with the same product type number(s) and title. a short data sheet is intended for quick reference only and should not be relied upon to contain detailed and full information. for detailed and full information see the relevant full data sheet, which is available on request via the local nxp semiconductors sales of?ce. in case of any inconsistency or con?ict with the short data sheet, the full data sheet shall prevail. 22.3 disclaimers general information in this document is believed to be accurate and reliable. however, nxp semiconductors does not give any representations or warranties, expressed or implied, as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such information. right to make changes nxp semiconductors reserves the right to make changes to information published in this document, including without limitation speci?cations and product descriptions, at any time and without notice. this document supersedes and replaces all information supplied prior to the publication hereof. suitability for use nxp semiconductors products are not designed, authorized or warranted to be suitable for use in medical, military, aircraft, space or life support equipment, nor in applications where failure or malfunction of an nxp semiconductors product can reasonably be expected to result in personal injury, death or severe property or environmental damage. nxp semiconductors accepts no liability for inclusion and/or use of nxp semiconductors products in such equipment or applications and therefore such inclusion and/or use is at the customers own risk. applications applications that are described herein for any of these products are for illustrative purposes only. nxp semiconductors makes no representation or warranty that such applications will be suitable for the speci?ed use without further testing or modi?cation. limiting values stress above one or more limiting values (as de?ned in the absolute maximum ratings system of iec 60134) may cause permanent damage to the device. limiting values are stress ratings only and operation of the device at these or any other conditions above those given in the characteristics sections of this document is not implied. exposure to limiting values for extended periods may affect device reliability. terms and conditions of sale nxp semiconductors products are sold subject to the general terms and conditions of commercial sale, as published at http://www .nxp .com/pro? le/ter ms , including those pertaining to warranty, intellectual property rights infringement and limitation of liability, unless explicitly otherwise agreed to in writing by nxp semiconductors. in case of any inconsistency or con?ict between information in this document and such terms and conditions, the latter will prevail. no offer to sell or license nothing in this document may be interpreted or construed as an offer to sell products that is open for acceptance or the grant, conveyance or implication of any license under any copyrights, patents or other industrial or intellectual property rights. 22.4 trademarks notice: all referenced brands, product names, service names and trademarks are the property of their respective owners. softconnect is a trademark of nxp b.v. 23. contact information for more information, please visit: http://www .nxp.com for sales of?ce addresses, please send an email to: salesad dresses@nxp.com document status [1] [2] product status [3] de?nition objective [short] data sheet development this document contains data from the objective speci?cation for product development. preliminary [short] data sheet quali?cation this document contains data from the preliminary speci?cation. product [short] data sheet production this document contains the product speci?cation.
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 156 of 163 continued >> nxp semiconductors isp1761 hi-speed usb otg controller 24. tables table 1. ordering information . . . . . . . . . . . . . . . . . . . . .4 table 2. pin description . . . . . . . . . . . . . . . . . . . . . . . . . .7 table 3. port connection scenarios . . . . . . . . . . . . . . . .16 table 4. memory address . . . . . . . . . . . . . . . . . . . . . . .18 table 5. using the irq mask and or irq mask or registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24 table 6. hybrid mode . . . . . . . . . . . . . . . . . . . . . . . . . .28 table 7. pin status during hybrid mode . . . . . . . . . . . . .29 table 8. host controller-speci?c register overview . . . .32 table 9. caplength - capability length register (address 0000h) bit description . . . . . . . . . . . .33 table 10. hciversion - host controller interface version number register (address 0002h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 table 11. hcsparams - host controller structural parameters register (address 0004h) bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 table 12. hcsparams - host controller structural parameters register (address 0004h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . .34 table 13. hccparams - host controller capability parameters register (address 0008h) bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34 table 14. hccparams - host controller capability parameters register (address 0008h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . .35 table 15. usbcmd - usb command register (address 0020h) bit allocation . . . . . . . . . . . . . . . . . . . . .36 table 16. usbcmd - usb command register (address 0020h) bit description . . . . . . . . . . . . . . . . . . .36 table 17. usbsts - usb status register (address 0024h) bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . .36 table 18. usbsts - usb status register (address 0024h) bit description . . . . . . . . . . . . . . . . . . . . . . . . .37 table 19. frindex - frame index register (address: 002ch) bit allocation . . . . . . . . . . . . . . . . . . . .37 table 20. frindex - frame index register (address: 002ch) bit description . . . . . . . . . . . . . . . . . . .38 table 21. configflag - con?gure flag register (address 0060h) bit allocation . . . . . . . . . . . . . . . . . . . . .38 table 22. configflag - con?gure flag register (address 0060h) bit description . . . . . . . . . . . . . . . . . . .39 table 23. portsc1 - port status and control 1 register (address 0064h) bit allocation . . . . . . . . . . . . .39 table 24. portsc1 - port status and control 1 register (address 0064h) bit description . . . . . . . . . . . .40 table 25. iso ptd done map register (address 0130h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . .40 table 26. iso ptd skip map register (address 0134h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 table 27. iso ptd last ptd register (address 0138h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 table 28. int ptd done map register (address 0140h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 table 29. int ptd skip map register (address 0144h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 table 30. int ptd last ptd register (address 0148h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 table 31. atl ptd done map register (address 0150h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 table 32. atl ptd skip map register (address 0154h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 table 33. atl ptd last ptd register (address 0158h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 table 34. hw mode control - hardware mode control register (address 0300h) bit allocation . . . . . . 43 table 35. hw mode control - hardware mode control register (address 0300h) bit description . . . . . 44 table 36. hcchipid - host controller chip identi?er register (address 0304h) bit description . . . . . . . . . . . . 45 table 37. hcscratch - host controller scratch register (address 0308h) bit description . . . . . . . . . . . . 45 table 38. sw reset - software reset register (address 030ch) bit allocation . . . . . . . . . . . . . . . . . . . . 45 table 39. sw reset - software reset register (address 030ch) bit description . . . . . . . . . . . . . . . . . . . 46 table 40. hcdmacon?guration - host controller direct memory access con?guration register (address 0330h) bit allocation . . . . . . . . . . . . . . . . . . . . 46 table 41. hcdmacon?guration - host controller direct memory access con?guration register (address 0330h) bit description . . . . . . . . . . . . . . . . . . . 47 table 42. hcbufferstatus - host controller buffer status register (address 0334h) bit allocation . . . . . . 47 table 43. hcbufferstatus - host controller buffer status register (address 0334h) bit description . . . . . 48 table 44. atl done timeout register (address 0338h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 table 45. memory register (address 033ch) bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 table 46. memory register (address 033ch) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 table 47. edge interrupt count register (address 0340h) bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 table 48. edge interrupt count register (address 0340h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 157 of 163 continued >> nxp semiconductors isp1761 hi-speed usb otg controller table 49. dma start address register (address 0344h) bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50 table 50. dma start address register (address 0344h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . .51 table 51. power down control register (address 0354h) bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51 table 52. power down control register (address 0354h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . .52 table 53. hcinterrupt - host controller interrupt register (address 0310h) bit allocation . . . . . . . . . . . . .53 table 54. hcinterrupt - host controller interrupt register (address 0310h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . .54 table 55. hcinterruptenable - host controller interrupt enable register (address 0314h) bit allocation 55 table 56. hcinterruptenable - host controller interrupt enable register (address 0314h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . .56 table 57. iso irq mask or register (address 0318h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . .57 table 58. int irq mask or register (address 031ch) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . .57 table 59. atl irq mask or register (address 0320h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . .58 table 60. iso irq mask and register (address 0324h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . .58 table 61. int irq mask and register (address 0328h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . .58 table 62. atl irq mask and register (address 032ch) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . .58 table 63. high-speed bulk in and out: bit allocation . . .61 table 64. high-speed bulk in and out: bit description .62 table 65. high-speed isochronous in and out: bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . .65 table 66. high-speed isochronous in and out: bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . .66 table 67. high-speed interrupt in and out: bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69 table 68. high-speed interrupt in and out: bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . .70 table 69. microframe description . . . . . . . . . . . . . . . . . .72 table 70. start and complete split for bulk: bit allocation 73 table 71. start and complete split for bulk: bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . .74 table 72. se description . . . . . . . . . . . . . . . . . . . . . . . . .76 table 73. start and complete split for isochronous: bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . .77 table 74. start and complete split for isochronous: bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . .78 table 75. start and complete split for interrupt: bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . .81 table 76. start and complete split for interrupt: bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 table 77. microframe description . . . . . . . . . . . . . . . . . . 84 table 78. se description . . . . . . . . . . . . . . . . . . . . . . . . . 84 table 79. otg controller-speci?c register overview . . . . 91 table 80. address mapping of registers: 32-bit data bus mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 table 81. address mapping of registers: 16-bit data bus mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 table 82. vendor id - vendor identi?er (address 0370h) register: bit description . . . . . . . . . . . . . . . . . . 92 table 83. product id - product identi?er register (address 0372h) bit description . . . . . . . . . . . . . . . . . . . 92 table 84. otg control register (address set: 0374h, clear: 0376h) bit allocation . . . . . . . . . . . . . . . . . . . . 93 table 85. otg control register (address set: 0374h, clear: 0376h) bit description . . . . . . . . . . . . . . . . . . . 93 table 86. otg status register (address 0378h) bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 table 87. otg status register (address 0378h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 table 88. otg interrupt latch register (address set: 037ch, clear: 037eh) bit allocation . . . . . . . . . . . . . . . 95 table 89. otg interrupt latch register (address set: 037ch, clear: 037eh) bit description . . . . . . . . . . . . . . 95 table 90. otg interrupt enable fall register (address set: 0380h, clear: 0382h) bit allocation . . . . . . . . . 96 table 91. otg interrupt enable fall register (address set: 0380h, clear: 0382h) bit description . . . . . . . . 96 table 92. otg interrupt enable rise register (address set: 0384h, clear: 0386h) bit allocation . . . . . . . . . 96 table 93. otg interrupt enable rise register (address set: 0384h, clear: 0386h) bit description . . . . . . . . 97 table 94. otg timer register (address low word set: 0388h, low word clear: 038ah; high word set: 038ch, high word clear: 038eh) bit allocation . . . . . . . . . . . 97 table 95. otg timer register (address low word set: 0388h, low word clear: 038ah; high word set: 038ch, high word clear: 038eh) bit description . . . . . . . . . . 98 table 96. endpoint access and programmability . . . . . 101 table 97. peripheral controller-speci?c register overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 table 98. address register (address 0200h) bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 table 99. address register (address 0200h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 table 100.mode register (address 020ch) bit allocation 105 table 101.mode register (address 020ch) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 table 102.interrupt con?guration register (address 0210h) bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . 106
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 158 of 163 continued >> nxp semiconductors isp1761 hi-speed usb otg controller table 103.interrupt con?guration register (address 0210h) bit description . . . . . . . . . . . . . . . . . . . . . . . .107 table 104.debug mode settings . . . . . . . . . . . . . . . . . . .107 table 105.debug register (address 0212h) bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . .107 table 106.debug register (address 0212h) bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . .107 table 107.dcinterruptenable - device controller interrupt enable register (address 0214h) bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . .108 table 108.dcinterruptenable - device controller interrupt enable register (address 0214h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . .109 table 109.endpoint index register (address 022ch) bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . .110 table 110.endpoint index register (address 022ch) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . .110 table 111.addressing of endpoint buffers . . . . . . . . . . .110 table 112.control function register (address 0228h) bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . .111 table 113.control function register (address 0228h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . .111 table 114.data port register (address 0220h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . .112 table 115.data port register (address 0220h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . .112 table 116.buffer length register (address 021ch) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . .113 table 117.dcbufferstatus - device controller buffer status register (address 021eh) bit allocation . . . . .113 table 118.dcbufferstatus - device controller buffer status register (address 021eh) bit description . . . .113 table 119.endpoint maxpacketsize register (address 0204h) bit allocation . . . . . . . . . . . . . . . . . . . .114 table 120.endpoint maxpacketsize register (address 0204h) bit description . . . . . . . . . . . . . . . . . .114 table 121.endpoint type register (address 0208h) bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . .115 table 122.endpoint type register (address 0208h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . .115 table 123.control bits for gdma read or write (opcode = 00h/01h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . .116 table 124.dma command register (address 0230h) bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . .116 table 125.dma command register (address 0230h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . .117 table 126.dma commands . . . . . . . . . . . . . . . . . . . . . .117 table 127.dma transfer counter register (address 0234h) bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . .118 table 128.dma transfer counter register (address 0234h) bit description . . . . . . . . . . . . . . . . . . . . . . . .118 table 129.dcdmacon?guration - device controller direct memory access con?guration register (address 0238h) bit allocation . . . . . . . . . . . . . . . . . . . 118 table 130.dcdmacon?guration - device controller direct memory access con?guration register (address 0238h) bit description . . . . . . . . . . . . . . . . . . 119 table 131.dma hardware register (address 023ch) bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 table 132.dma hardware register (address 023ch) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 table 133.dma interrupt reason register (address 0250h) bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . 120 table 134.dma interrupt reason register (address 0250h) bit description . . . . . . . . . . . . . . . . . . . . . . . . 120 table 135.internal eot-functional relation with the dma_xfer_ok bit . . . . . . . . . . . . . . . . . . . . 121 table 136.dma interrupt enable register (address 0254h) bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 table 137.dma endpoint register (address 0258h) bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 table 138.dma endpoint register (address 0258h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 table 139.dma burst counter register (address 0264h) bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 table 140.dma burst counter register (address 0264h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 table 141.dcinterrupt - device controller interrupt register (address 0218h) bit allocation . . . . . . . . . . . . 123 table 142.dcinterrupt - device controller interrupt register (address 0218h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 table 143.dcchipid - device controller chip identi?er register (address 0270h) bit description . . . . 125 table 144.frame number register (address 0274h) bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 table 145.frame number register (address 0274h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 table 146.dcscratch - device controller scratch register (address 0278h) bit allocation . . . . . . . . . . . . 126 table 147.dcscratch - device controller scratch register (address 0278h) bit description . . . . . . . . . . . 126 table 148.unlock device register (address 027ch) bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 table 149.unlock device register (address 027ch) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 table 150.interrupt pulse width register (address 0280h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 table 151.test mode register (address 0284h) bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 table 152.test mode register (address 0284h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 159 of 163 nxp semiconductors isp1761 hi-speed usb otg controller table 153.power consumption . . . . . . . . . . . . . . . . . . . .128 table 154.limiting values . . . . . . . . . . . . . . . . . . . . . . . .129 table 155.recommended operating conditions . . . . . . .129 table 156.static characteristics: digital pins . . . . . . . . . .130 table 157.static characteristics: psw1_n, psw2_n, psw3_n . . . . . . . . . . . . . . . . . . . . . . . . . . . .130 table 158.static characteristics: usb interface block (pins dm1 to dm3 and dp1 to dp3) . . . . . . . . . . .130 table 159.static characteristics: ref5v . . . . . . . . . . . .131 table 160.static characteristics: v bus comparators . . . .131 table 161.static characteristics: v bus resistors . . . . . . .132 table 162.dynamic characteristics: system clock timing 133 table 163.dynamic characteristics: cpu interface block 133 table 164.dynamic characteristics: high-speed source electrical characteristics . . . . . . . . . . . . . . . .133 table 165.dynamic characteristics: full-speed source electrical characteristics . . . . . . . . . . . . . . . .133 table 166.dynamic characteristics: low-speed source electrical characteristics . . . . . . . . . . . . . . . .134 table 167.register or memory write . . . . . . . . . . . . . . .135 table 168.register read . . . . . . . . . . . . . . . . . . . . . . . . .136 table 169.register access . . . . . . . . . . . . . . . . . . . . . . .137 table 170.memory read . . . . . . . . . . . . . . . . . . . . . . . . .137 table 171.dma read (single cycle) . . . . . . . . . . . . . . . . .138 table 172.dma write (single cycle) . . . . . . . . . . . . . . . .139 table 173.dma read (multi-cycle burst) . . . . . . . . . . . . .140 table 174.dma write (multi-cycle burst) . . . . . . . . . . . . .141 table 175.pio register read or write . . . . . . . . . . . . . . .142 table 176.register access . . . . . . . . . . . . . . . . . . . . . . .143 table 177.dma read or write . . . . . . . . . . . . . . . . . . . . .144 table 178.snpb eutectic process (from j-std-020c) . .149 table 179.lead-free process (from j-std-020c) . . . . .149 table 180.suitability of through-hole mount ic packages for dipping and wave soldering . . . . . . . . . . . . . .151 table 181.abbreviations . . . . . . . . . . . . . . . . . . . . . . . . .152 table 182.revision history . . . . . . . . . . . . . . . . . . . . . . .154
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 160 of 163 nxp semiconductors isp1761 hi-speed usb otg controller 25. figures fig 1. block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . .5 fig 2. pin con?guration (lqfp128); top view . . . . . . . . .6 fig 3. pin con?guration (tfbga128); top view . . . . . . . .6 fig 4. internal hub . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15 fig 5. isp1761 clock scheme . . . . . . . . . . . . . . . . . . . .15 fig 6. memory segmentation and access block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19 fig 7. isp1761 power supply connection. . . . . . . . . . . .27 fig 8. most commonly used power supply connection .28 fig 9. hybrid mode . . . . . . . . . . . . . . . . . . . . . . . . . . . .29 fig 10. adjusting analog overcurrent detection limit (optional) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30 fig 11. internal power-on reset timing . . . . . . . . . . . . . . .31 fig 12. clock with respect to the external power-on reset . . . . . . . . . . . . . . . . . . . . . . . . . . .31 fig 13. nextptd traversal rule. . . . . . . . . . . . . . . . . . . . .60 fig 14. hnp sequence of events . . . . . . . . . . . . . . . . . . .87 fig 15. dual-role a-device state diagram. . . . . . . . . . . . .89 fig 16. dual-role b-device state diagram. . . . . . . . . . . . .90 fig 17. charge pump current versus voltage at various temperatures (worst case). . . . . . . . .132 fig 18. charge pump current versus voltage at various temperatures (typical case) . . . . . . . .132 fig 19. usb source differential data-to-eop transition skew and eop width . . . . . . . . . . . . . . . . . . . . .134 fig 20. register or memory write. . . . . . . . . . . . . . . . . .135 fig 21. register read . . . . . . . . . . . . . . . . . . . . . . . . . . .136 fig 22. register access . . . . . . . . . . . . . . . . . . . . . . . . .136 fig 23. memory read . . . . . . . . . . . . . . . . . . . . . . . . . . .137 fig 24. dma read (single cycle). . . . . . . . . . . . . . . . . . .138 fig 25. dma write (single cycle) . . . . . . . . . . . . . . . . . .139 fig 26. dma read (multi-cycle burst) . . . . . . . . . . . . . . .140 fig 27. dma write (multi-cycle burst) . . . . . . . . . . . . . . .141 fig 28. isp1761 register access timing: separate address and data buses (8051 style). . . . . . . . .142 fig 29. pio register access . . . . . . . . . . . . . . . . . . . . . .143 fig 30. dma read or write . . . . . . . . . . . . . . . . . . . . . . .144 fig 31. package outline sot425-1 (lqfp128) . . . . . . .146 fig 32. package outline sot857-1 (tfbga128). . . . . .147 fig 33. temperature pro?les for large and small components . . . . . . . . . . . . . . . . . . . . . . . . . . . .150
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 161 of 163 continued >> nxp semiconductors isp1761 hi-speed usb otg controller 26. contents 1 general description . . . . . . . . . . . . . . . . . . . . . . 1 2 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 3 applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 3.1 host/peripheral roles. . . . . . . . . . . . . . . . . . . . . 3 4 ordering information . . . . . . . . . . . . . . . . . . . . . 4 5 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 5 6 pinning information . . . . . . . . . . . . . . . . . . . . . . 6 6.1 pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 6.2 pin description . . . . . . . . . . . . . . . . . . . . . . . . . 7 7 functional description . . . . . . . . . . . . . . . . . . 14 7.1 isp1761 internal architecture: advanced nxp slave host controller and hub . . . . . . . . . 14 7.1.1 internal clock scheme and port selection . . . . 15 7.2 host controller buffer memory block . . . . . . . . 16 7.2.1 general considerations. . . . . . . . . . . . . . . . . . 16 7.2.2 structure of the isp1761 host controller memory. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 7.3 accessing the isp1761 host controller memory: pio and dma . . . . . . . . . . . . . . . . . 19 7.3.1 pio mode access, memory read cycle . . . . . . 20 7.3.2 pio mode access, memory write cycle . . . . . 20 7.3.3 pio mode access, register read cycle . . . . . . 21 7.3.4 pio mode access, register write cycle . . . . . . 21 7.3.5 dma mode, read and write operations . . . . . . 21 7.4 interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 7.5 phase-locked loop (pll) clock multiplier . . . 24 7.6 power management . . . . . . . . . . . . . . . . . . . . 25 7.7 power supply . . . . . . . . . . . . . . . . . . . . . . . . . 26 7.7.1 hybrid mode . . . . . . . . . . . . . . . . . . . . . . . . . . 28 7.8 overcurrent detection . . . . . . . . . . . . . . . . . . . 29 7.9 power-on reset (por) . . . . . . . . . . . . . . . . . 30 8 host controller . . . . . . . . . . . . . . . . . . . . . . . . . 32 8.1 ehci capability registers . . . . . . . . . . . . . . . . 33 8.1.1 caplength register. . . . . . . . . . . . . . . . . . . 33 8.1.2 hciversion register . . . . . . . . . . . . . . . . . . 33 8.1.3 hcsparams register . . . . . . . . . . . . . . . . . . 33 8.1.4 hccparams register . . . . . . . . . . . . . . . . . . 34 8.2 ehci operational registers . . . . . . . . . . . . . . . 35 8.2.1 usbcmd register . . . . . . . . . . . . . . . . . . . . . . 35 8.2.2 usbsts register . . . . . . . . . . . . . . . . . . . . . . 36 8.2.3 usbintr register . . . . . . . . . . . . . . . . . . . . . . 37 8.2.4 frindex register . . . . . . . . . . . . . . . . . . . . . . 37 8.2.5 configflag register . . . . . . . . . . . . . . . . . . 38 8.2.6 portsc1 register . . . . . . . . . . . . . . . . . . . . . 39 8.2.7 iso ptd done map register. . . . . . . . . . . . . . 40 8.2.8 iso ptd skip map register . . . . . . . . . . . . . . 41 8.2.9 iso ptd last ptd register . . . . . . . . . . . . . . 41 8.2.10 int ptd done map register. . . . . . . . . . . . . . 41 8.2.11 int ptd skip map register . . . . . . . . . . . . . . 41 8.2.12 int ptd last ptd register . . . . . . . . . . . . . . 42 8.2.13 atl ptd done map register . . . . . . . . . . . . . 42 8.2.14 atl ptd skip map register . . . . . . . . . . . . . . 42 8.2.15 atl ptd last ptd register . . . . . . . . . . . . . . 43 8.3 con?guration registers . . . . . . . . . . . . . . . . . . 43 8.3.1 hw mode control register . . . . . . . . . . . . . . . 43 8.3.2 hcchipid register. . . . . . . . . . . . . . . . . . . . . . 45 8.3.3 hcscratch register . . . . . . . . . . . . . . . . . . . . . 45 8.3.4 sw reset register . . . . . . . . . . . . . . . . . . . . . 45 8.3.5 hcdmacon?guration register. . . . . . . . . . . . . 46 8.3.6 hcbufferstatus register . . . . . . . . . . . . . . . . . 47 8.3.7 atl done timeout register . . . . . . . . . . . . . . 48 8.3.8 memory register . . . . . . . . . . . . . . . . . . . . . . . 48 8.3.9 edge interrupt count register. . . . . . . . . . . . . 49 8.3.10 dma start address register . . . . . . . . . . . . . . 50 8.3.11 power down control register . . . . . . . . . . . . . 51 8.4 interrupt registers . . . . . . . . . . . . . . . . . . . . . . 53 8.4.1 hcinterrupt register . . . . . . . . . . . . . . . . . . . . 53 8.4.2 hcinterruptenable register . . . . . . . . . . . . . . . 55 8.4.3 iso irq mask or register . . . . . . . . . . . . . . 57 8.4.4 int irq mask or register . . . . . . . . . . . . . . 57 8.4.5 atl irq mask or register . . . . . . . . . . . . . . 57 8.4.6 iso irq mask and register. . . . . . . . . . . . . 58 8.4.7 int irq mask and register . . . . . . . . . . . . . 58 8.4.8 atl irq mask and register . . . . . . . . . . . . . 58 8.5 philips transfer descriptor (ptd). . . . . . . . . . 58 8.5.1 high-speed bulk in and out . . . . . . . . . . . . . 61 8.5.2 high-speed isochronous in and out . . . . . . 65 8.5.3 high-speed interrupt in and out . . . . . . . . . 69 8.5.4 start and complete split for bulk . . . . . . . . . . . 73 8.5.5 start and complete split for isochronous . . . . 77 8.5.6 start and complete split for interrupt . . . . . . . 81 9 otg controller . . . . . . . . . . . . . . . . . . . . . . . . 85 9.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . 85 9.2 dual-role device . . . . . . . . . . . . . . . . . . . . . . . 85 9.3 session request protocol (srp) . . . . . . . . . . 86 9.3.1 b-device initiating srp. . . . . . . . . . . . . . . . . . 86 9.3.2 a-device responding to srp . . . . . . . . . . . . . 86 9.4 host negotiation protocol (hnp) . . . . . . . . . . 87 9.4.1 sequence of hnp events . . . . . . . . . . . . . . . . 87 9.4.2 otg state diagrams . . . . . . . . . . . . . . . . . . . . 88 9.4.3 hnp implementation and otg state machine 90 9.5 otg controller registers . . . . . . . . . . . . . . . . . 91 9.5.1 device identi?cation registers . . . . . . . . . . . . 92 9.5.1.1 vendor id register . . . . . . . . . . . . . . . . . . . . . 92
isp1761_5 ? nxp b.v. 2008. all rights reserved. product data sheet rev. 05 13 march 2008 162 of 163 continued >> nxp semiconductors isp1761 hi-speed usb otg controller 9.5.1.2 product id register (r: 0372h) . . . . . . . . . . . . 92 9.5.2 otg control register . . . . . . . . . . . . . . . . . . . 93 9.5.2.1 otg control register . . . . . . . . . . . . . . . . . . . 93 9.5.3 otg interrupt registers. . . . . . . . . . . . . . . . . . 94 9.5.3.1 otg status register . . . . . . . . . . . . . . . . . . . . 94 9.5.3.2 otg interrupt latch register. . . . . . . . . . . . . . 95 9.5.3.3 otg interrupt enable fall register . . . . . . . . . 96 9.5.3.4 otg interrupt enable rise register . . . . . . . . 96 9.5.4 otg timer register . . . . . . . . . . . . . . . . . . . . . 97 9.5.4.1 otg timer register . . . . . . . . . . . . . . . . . . . . . 97 10 peripheral controller . . . . . . . . . . . . . . . . . . . . 99 10.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 10.1.1 direct memory access (dma) . . . . . . . . . . . . 99 10.1.1.1 dma for the in endpoint . . . . . . . . . . . . . . . . . 99 10.1.1.2 dma for the out endpoint . . . . . . . . . . . . . . . 99 10.1.1.3 dma initialization . . . . . . . . . . . . . . . . . . . . . . 99 10.1.1.4 starting dma . . . . . . . . . . . . . . . . . . . . . . . . 100 10.1.1.5 dma stop and interrupt handling . . . . . . . . . 100 10.2 endpoint description . . . . . . . . . . . . . . . . . . . 101 10.3 clear buffer . . . . . . . . . . . . . . . . . . . . . . . . . . 102 10.4 differences between the isp1761 and isp1582 peripheral controllers . . . . . . . . . . . 102 10.4.1 isp1761 initialization registers . . . . . . . . . . . 102 10.4.2 isp1761 dma . . . . . . . . . . . . . . . . . . . . . . . . 103 10.4.3 isp1761 peripheral suspend indication . . . . 103 10.4.4 isp1761 interrupt and dma common mode . 103 10.5 peripheral controller-speci?c registers . . . . . 103 10.5.1 address register . . . . . . . . . . . . . . . . . . . . . . 104 10.5.2 mode register . . . . . . . . . . . . . . . . . . . . . . . . 105 10.5.3 interrupt con?guration register . . . . . . . . . . . 106 10.5.4 debug register . . . . . . . . . . . . . . . . . . . . . . . 107 10.5.5 dcinterruptenable register . . . . . . . . . . . . . . 108 10.6 data ?ow registers . . . . . . . . . . . . . . . . . . . . 109 10.6.1 endpoint index register. . . . . . . . . . . . . . . . . 109 10.6.2 control function register . . . . . . . . . . . . . . . 110 10.6.3 data port register . . . . . . . . . . . . . . . . . . . . . 112 10.6.4 buffer length register . . . . . . . . . . . . . . . . . . 112 10.6.5 dcbufferstatus register. . . . . . . . . . . . . . . . . 113 10.6.6 endpoint maxpacketsize register . . . . . . . . . 114 10.6.7 endpoint type register . . . . . . . . . . . . . . . . . 114 10.7 dma registers . . . . . . . . . . . . . . . . . . . . . . . . 115 10.7.1 dma command register . . . . . . . . . . . . . . . . 116 10.7.2 dma transfer counter register . . . . . . . . . . . 117 10.7.3 dcdmacon?guration register . . . . . . . . . . . . 118 10.7.4 dma hardware register . . . . . . . . . . . . . . . . 119 10.7.5 dma interrupt reason register . . . . . . . . . . . 120 10.7.6 dma interrupt enable register . . . . . . . . . . . 121 10.7.7 dma endpoint register . . . . . . . . . . . . . . . . . 121 10.7.8 dma burst counter register . . . . . . . . . . . . . 122 10.8 general registers . . . . . . . . . . . . . . . . . . . . . 123 10.8.1 dcinterrupt register . . . . . . . . . . . . . . . . . . . 123 10.8.2 dcchipid register. . . . . . . . . . . . . . . . . . . . . 125 10.8.3 frame number register . . . . . . . . . . . . . . . . 125 10.8.4 dcscratch register . . . . . . . . . . . . . . . . . . . . 125 10.8.5 unlock device register . . . . . . . . . . . . . . . . . 126 10.8.6 interrupt pulse width register. . . . . . . . . . . . 126 10.8.7 test mode register . . . . . . . . . . . . . . . . . . . . 127 11 power consumption . . . . . . . . . . . . . . . . . . . 128 12 limiting values . . . . . . . . . . . . . . . . . . . . . . . 129 13 recommended operating conditions . . . . . 129 14 static characteristics . . . . . . . . . . . . . . . . . . 130 15 dynamic characteristics . . . . . . . . . . . . . . . . 133 15.1 host timing . . . . . . . . . . . . . . . . . . . . . . . . . . 135 15.1.1 pio timing . . . . . . . . . . . . . . . . . . . . . . . . . . 135 15.1.1.1 register or memory write . . . . . . . . . . . . . . . 135 15.1.1.2 register read . . . . . . . . . . . . . . . . . . . . . . . . 136 15.1.1.3 register access . . . . . . . . . . . . . . . . . . . . . . 136 15.1.1.4 memory read . . . . . . . . . . . . . . . . . . . . . . . . 137 15.1.2 dma timing. . . . . . . . . . . . . . . . . . . . . . . . . . 138 15.1.2.1 single cycle: dma read . . . . . . . . . . . . . . . . 138 15.1.2.2 single cycle: dma write . . . . . . . . . . . . . . . . 139 15.1.2.3 multi-cycle: dma read . . . . . . . . . . . . . . . . . 140 15.1.2.4 multi-cycle: dma write . . . . . . . . . . . . . . . . . 141 15.2 peripheral timing . . . . . . . . . . . . . . . . . . . . . 142 15.2.1 pio timing . . . . . . . . . . . . . . . . . . . . . . . . . . 142 15.2.1.1 pio register read or write . . . . . . . . . . . . . . . 142 15.2.1.2 pio register access . . . . . . . . . . . . . . . . . . . 143 15.2.2 dma timing. . . . . . . . . . . . . . . . . . . . . . . . . . 144 15.2.2.1 dma read or write . . . . . . . . . . . . . . . . . . . . 144 16 package outline . . . . . . . . . . . . . . . . . . . . . . . 146 17 soldering of smd packages . . . . . . . . . . . . . 148 17.1 introduction to soldering. . . . . . . . . . . . . . . . 148 17.2 wave and re?ow soldering . . . . . . . . . . . . . . 148 17.3 wave soldering. . . . . . . . . . . . . . . . . . . . . . . 148 17.4 re?ow soldering. . . . . . . . . . . . . . . . . . . . . . 149 18 soldering of through-hole mount packages 150 18.1 introduction to soldering through-hole mount packages . . . . . . . . . . . . . . . . . . . . . . 150 18.2 soldering by dipping or by solder wave . . . . 150 18.3 manual soldering . . . . . . . . . . . . . . . . . . . . . 150 18.4 package related soldering information . . . . . 151 19 abbreviations . . . . . . . . . . . . . . . . . . . . . . . . 152 20 references . . . . . . . . . . . . . . . . . . . . . . . . . . . 153 21 revision history . . . . . . . . . . . . . . . . . . . . . . 154 22 legal information . . . . . . . . . . . . . . . . . . . . . 155 22.1 data sheet status . . . . . . . . . . . . . . . . . . . . . 155 22.2 de?nitions . . . . . . . . . . . . . . . . . . . . . . . . . . 155 22.3 disclaimers. . . . . . . . . . . . . . . . . . . . . . . . . . 155
nxp semiconductors isp1761 hi-speed usb otg controller ? nxp b.v. 2008. all rights reserved. for more information, please visit: http://www.nxp.com for sales office addresses, please send an email to: salesaddresses@nxp.com date of release: 13 march 2008 document identifier: isp1761_5 please be aware that important notices concerning this document and the product(s) described herein, have been included in section legal information. 22.4 trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . 155 23 contact information. . . . . . . . . . . . . . . . . . . . 155 24 tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156 25 figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160 26 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161


▲Up To Search▲   

 
Price & Availability of ISP1761BE

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X